Hi, forum
When I set p:editor width attribute like this <p:editor width="100%" />, I get an error.
Any advice?
Thanks
p:editor width attribute must be int?
-
- Posts: 16
- Joined: 22 Jul 2011, 10:50
The width attribute is limited to numbers and the javascript sets the default to 500. I've just tried tweaking the render so that, if no width attribute is given, it defaults to placingeshock wrote:Hi, forum
When I set p:editor width attribute like this <p:editor width="100%" />, I get an error.
Any advice?
Thanks
width: 'auto'
into the javascript. So far that looks OK, but it is a tweak which is bad news. I have to say that, for width at least, 'auto' seems like a better default.
-
- Posts: 1
- Joined: 15 Feb 2013, 13:15
In your component put style="width=100%"
Code: Select all
<p:editor id="editor" widgetVar="editorWidget" value="#{xxxx}" style="width = 100%" />
- andyba
- Expert Member
- Posts: 2473
- Joined: 31 Mar 2011, 16:27
- Location: Steinfeld, near Bremen/Osnabrück, DE
- Contact:
Wrong, wrong, wrong.halley.was wrote:In your component put style="width=100%"
Code: Select all
<p:editor id="editor" widgetVar="editorWidget" value="#{xxxx}" style="width = 100%" />
1- don't resurrect old threads like this, Forum Rules are clear on this
2- your solution is wrong, in css it is style="width: 100%;"
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now
-
- Information
-
Who is online
Users browsing this forum: No registered users and 48 guests