p:editor width attribute must be int?

UI Components for JSF
Post Reply
eshock
Posts: 5
Joined: 05 Nov 2010, 10:29

24 Dec 2010, 09:15

Hi, forum

When I set p:editor width attribute like this <p:editor width="100%" />, I get an error.

Any advice?

Thanks

User avatar
edsonlb
Posts: 4
Joined: 22 Jul 2011, 14:05
Location: Brazil

22 Jul 2011, 22:09

I`m with the same problem... Do you find the answer?

User avatar
edsonlb
Posts: 4
Joined: 22 Jul 2011, 14:05
Location: Brazil

22 Jul 2011, 22:50

Can this component be 100% width at all?

Soupdragon
Posts: 16
Joined: 22 Jul 2011, 10:50

09 Nov 2011, 16:58

eshock wrote:Hi, forum

When I set p:editor width attribute like this <p:editor width="100%" />, I get an error.

Any advice?

Thanks
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 placing

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.

halley.was
Posts: 1
Joined: 15 Feb 2013, 13:15

26 Jan 2015, 19:08

In your component put style="width=100%"

Code: Select all

<p:editor id="editor" widgetVar="editorWidget" value="#{xxxx}"  style="width = 100%"  />

User avatar
andyba
Expert Member
Posts: 2473
Joined: 31 Mar 2011, 16:27
Location: Steinfeld, near Bremen/Osnabrück, DE
Contact:

27 Jan 2015, 10:49

halley.was wrote:In your component put style="width=100%"

Code: Select all

<p:editor id="editor" widgetVar="editorWidget" value="#{xxxx}"  style="width = 100%"  />
Wrong, wrong, wrong.
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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 48 guests