AW: Search Highlighting

2007-08-27 Thread Sertic Mirko, Bedag
Hi

How are you doing the search? Is it a database search, or
are u using lucene, for instance? With lucene, you can use
she search result highlighter to generate html, and then
output it in your jsp/jsf page...

Regards
Mirko

-Ursprüngliche Nachricht-
Von: kewldude [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 28. August 2007 07:13
An: users@myfaces.apache.org
Betreff: Search Highlighting


I know this is a little bit off topic here, but I need to ask it here because
I'm using MyFaces in this project, so here it goes...

I need to present a dataTable that represents search results coming from a
search query (query of books, articles,documents etc. ). Lets say I have 4
columns to display (KeyNumber,Author,Title,Subject), within those columns I
need to highlight the exact words that the user used in querying/searching.
Lets say the user searched for Bert Bates.

The dataTable will be presented somewhat like this:

KeyNumber Author
  
Title Subject
1Eric Freeman, Bert Bates, Elisabeth Freeman Head First
Design Pattern Certifications,Java
2Kathy Sierra, Bert Bates   
Head First Java Java, OOP

As you can see, the column where the search query has a match is not
highlighted completely. Only the 
words that match up with the search string itself. Can this be done using
MyFaces? I hope you can provide some ideas and suggestions as to what
approach I can use or investigate. 
-- 
View this message in context: 
http://www.nabble.com/Search-Highlighting-tf4339753.html#a12362158
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Clustering MyFaces application with Tomcat

2007-08-27 Thread Adrian Mitev
Binding to jsf components should be done using request scoped beans only
(with session scope bean you don't allow jsf to clear the tree after the
request is processed).

2007/8/27, Svilen Ivanov <[EMAIL PROTECTED]>:
>
> I'm trying to cluster a certain MyFaces (1.1.5, tomahawk 1.1.6)
> application in Tomcat 5.5.20. The applications heavily relies on
> session beans which use ListDataModel and HtmlDataScroller as
> properties. When I setup Tomcat to replicate sessions I got
> NotSerializableException for HtmlDataScroller.
>
> As far as I understood from MyFaces FAQ [2] list data model is not
> serializable and may be marked "transient". Some guys recommend to
> build new data model out of a list [1] each time data model is
> requested. However I couldn't find how to solve the problem with
> HtmlDataScroller.
>
> My initial idea is to subclass MyFaces classes I use in the session
> beans and make them implement Serializable interface. How does this
> sound?
>
> Also I have bindings of input controls (HtmlInputText,
> HtmlSelectOneRadio) in these session beans. Are they also stateless as
> ListDataModel?
>
> I would really appreciate if you share your experience with clustering
> MyFaces application as well or if you point me towards resources on
> the Internet that might help
>
> Regards,
> Svilen
>
> [1] http://www.mail-archive.com/users@myfaces.apache.org/msg38166.html
> [2] http://wiki.apache.org/myfaces/FAQ
>
> --
> Svilen Ivanov
> http://svilen-online.blogspot.com
>
> There is no dark side of the moon really.
> Matter of fact it's all dark.
>


Search Highlighting

2007-08-27 Thread kewldude

I know this is a little bit off topic here, but I need to ask it here because
I'm using MyFaces in this project, so here it goes...

I need to present a dataTable that represents search results coming from a
search query (query of books, articles,documents etc. ). Lets say I have 4
columns to display (KeyNumber,Author,Title,Subject), within those columns I
need to highlight the exact words that the user used in querying/searching.
Lets say the user searched for Bert Bates.

The dataTable will be presented somewhat like this:

KeyNumber Author
  
Title Subject
1Eric Freeman, Bert Bates, Elisabeth Freeman Head First
Design Pattern Certifications,Java
2Kathy Sierra, Bert Bates   
Head First Java Java, OOP

As you can see, the column where the search query has a match is not
highlighted completely. Only the 
words that match up with the search string itself. Can this be done using
MyFaces? I hope you can provide some ideas and suggestions as to what
approach I can use or investigate. 
-- 
View this message in context: 
http://www.nabble.com/Search-Highlighting-tf4339753.html#a12362158
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] panelLabelAndMessage doesn't render message?

2007-08-27 Thread Adam Winer
Huh.  That's WEIRD.

-- Adam


On 8/27/07, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> I presume this is a bug, but wanted to make sure before reporting it.
>
> Code from PanelLabelAndMessageRenderer in 1.0.2:
>
> @Override
>   protected boolean hasMessage(
> FacesContextcontext,
> RenderingContext arc,
> UIComponent component,
> FacesBean   bean)
>   {
> return false;
>   }
>
> As you can see, a message will never be rendered. The red X appears in
> the label, but the message is never rendered as a result of the above
> code.
>
> The LabelAndMessage renderer seems to have the correct code, but is
> overridden by the above code.
>
> Anyone know the purpose, if any, of this?
>
> Thanks,
> Andrew
>


Re: [Trinidad] Upgrading to 1.0.2

2007-08-27 Thread Adam Winer
A JIRA issue + a patch would make it more likely. :)

-- Adam


On 8/27/07, Perkins, Nate-P63196 <[EMAIL PROTECTED]> wrote:
> Can this be expected in 1.0.3?
>
>
> Nate Perkins
> 480-441-3667
> [EMAIL PROTECTED]
>
> >This email message is for the sole use of the intended recipient(s) and
> may contain GDC4S
> > confidential or privileged information. Any unauthorized review, use,
> disclosure or distribution
> > is prohibited. If you are not an intended recipient, please contact
> the sender by reply email and
> > destroy all copies of the original message.
> >
>
> -Original Message-
> From: Adam Winer [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 23, 2007 8:00 PM
> To: MyFaces Discussion
> Subject: Re: [Trinidad] Upgrading to 1.0.2
>
> I'm getting the feeling that we really need to add a flag
> to at least trh:html or both trh:html and tr:document
> that supports forcing quirks mode.
>
> Thoughts?
>
> -- Adam
>
>
> On 8/23/07, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> > You can use IE6 in quirks mode and firefox in standards mode by
> > subclassing the tr:document renderer.
> >
> > If a comment appears before the doc type, IE will not go into
> standards mode.
> >
> > Here is some code if you want to do it this way to force only IE into
> > quirks mode while using tr:document:
> >
> > public class DocumentRenderer
> >   extends
> >
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRendere
> r
> > {
> >
> >   /**
> >*
> >*/
> >   public DocumentRenderer()
> >   {}
> >
> >   /**
> >* @param type
> >*/
> >   public DocumentRenderer(Type type)
> >   {
> > super(type);
> >   }
> >
> >   /**
> >* @see
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRendere
> r#encodeAll(javax.faces.context.FacesContext,
> > org.apache.myfaces.trinidad.context.RenderingContext,
> > javax.faces.component.UIComponent,
> > org.apache.myfaces.trinidad.bean.FacesBean)
> >*/
> >   @Override
> >   protected void encodeAll(FacesContext context, RenderingContext arc,
> > UIComponent component, FacesBean bean) throws IOException
> >   {
> > if (Agent.AGENT_IE.equals(arc.getAgent().getAgentName()))
> > {
> >   context.getResponseWriter().write("");
> > }
> > super.encodeAll(context, arc, component, bean);
> >   }
> > }
> >
> >
> > On 8/23/07, Perkins, Nate-P63196 <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > I put a lot of time into this problem, albeit a while ago, but I
> could not
> > > find a way to satisfy my requirements for IE6 in standard mode, I
> would love
> > > to be able to, but I have not found a way.  I'll post the general
> structure
> > > and the css and perhaps you can help?
> > >
> > > The basic structure is this:
> > >
> > > 
> > > Some necessary banner text
> > > 
> > > 
> > > Whatever the particular page requires
> > > 
> > > 
> > > Again, some necessary banner text
> > > 
> > >
> > > The requirement is that the top_bar and the bottom_bar are always
> visible
> > > and in the same position (at the top and the bottom, respectively :)
> ) but
> > > not covering the main_content while main_content can scroll as
> necessary.
> > >
> > > Here's the css that I used to accomplish this, this works properly
> in
> > > Firefox regardless of the doc-type, but again, in IE6 it only works
> in
> > > quirks mode.
> > >
> > > body {
> > > border: 0pt none;
> > > margin: 0;
> > > padding 0;
> > >
> > > height: 100%;
> > > max-height: 100%;
> > >
> > > width: 100%;
> > > max-width: 100%;
> > > overflow: hidden;
> > > }
> > >
> > > * html body {
> > > padding: 5px 0pt 55px;
> > > }
> > >
> > > #main_content {
> > > bottom: 30px;
> > > left: 0px;
> > > overflow: auto;
> > > position: fixed;
> > > right: 0;
> > > top: 25px;
> > > }
> > >
> > > * html #main_content {
> > > height: 100%;
> > > position: relative;
> > > width: 100%;
> > > }
> > >
> > > #top_bar {
> > > height: 25px;
> > >
> > > position: absolute;left: 0;
> > > top: 0;
> > > width: 100%;
> > > }
> > >
> > > #bottom_bar {
> > >
> > > height: 25px;
> > >
> > > position: absolute;left: 0;
> > > bottom: 0;
> > > width: 100%;
> > > }
> > >
> > >
> > > Nate Perkins
> > > 480-441-3667
> > > [EMAIL PROTECTED]
> > >
> > > This email message is for the sole use of the intended recipient(s)
> and may
> > > contain GDC4S
> > >  confidential or privileged information. Any unauthorized review,
> use,
> > > disclosure or distribution
> > >  is prohibited. If you are not an intended recipient, please contact
> the
> > > sender by reply email and
> > >  destroy all copies of the original message.
> > >
> > >
> > >  
> > >  From: Simon Lessard [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, August 23, 2007 8:21 AM
> > >
> > > To: MyFaces Discussion
> > > Subject: Re: [Trinidad] Upgrading to 1.0.2
> > >
> > >
> > > Hello Nate,
> > >
> > > So what you're saying is that your application will only ever work
> in quirk
> > > mode? There's always a solut

Re: Integrate AjaxAnywhere with Trinidad Poll

2007-08-27 Thread Andrew Robinson
Why not switch from tree2 to tr:navigationTree?

Also Trinidad is a full AJAX library, you do not need A4J or AA (I
have used all three, and the Trinidad one is flexible enough for me).

-Andrew

On 8/27/07, pdt_p <[EMAIL PROTECTED]> wrote:
>
> Hi guys,
>
> Thank you for the suggestion. the reason I am using AA with Trinidad because
> Tomahawk Tree2. I have to expand or collapse the tree without need reloading
> the page but only the Tree2 zone.
>
> As you guys said that there should be no reason to use AA if I am using
> Trinidad.
> Please suggest me, what's ajax library that will be suitable for Trinidad?
> We have problem integrating Ajax4Jsf with Trinidad then we move to AA.
>
> Thank you.
>
> Pdt
>
>
> Scott O'Bryan wrote:
> >
> > Yeah, I totally agree with this.  Having 2 js libraries interact with
> > the XMLHttpRequest is bound to cause some problems.  I imagine that the
> > issue your facing is that AA's AJAX implementation is conflicting with
> > Trinidad's AJAX implementation.  Either way, there should be no reason
> > to use AA if you are using Trinidad.
> >
> > Scott
> >
> > Andrew Robinson wrote:
> >> Why use AA with Trinidad. AA doesn't give you any functionality that
> >> Trinidad already has. My suggestion is to definitely stop using AA.
> >>
> >> On 8/26/07, pdt_p <[EMAIL PROTECTED]> wrote:
> >>
> >>> Hi guys,
> >>>
> >>> I just wonder is there anyone has successfully integrate AjaxAnywhere
> >>> with
> >>> Trinidad poll element?
> >>> I have tried to integrate it and the result, the poll listener will only
> >>> be
> >>> executed once. It happen only after the page is rendered and after that
> >>> the
> >>> poll listener never get executed anymore unless I refresh my page.
> >>> In this page I have substitute the form submit to ajaxanywhere form
> >>> submit
> >>> through this script:
> >>> ajaxAnywhere.formName = "testForm";
> >>> ajaxAnywhere.bindById();
> >>> ajaxAnywhere.substituteFormSubmitFunction();
> >>>
> >>>
> >>> Second question, When I paly around with AA seems like Trinidad
> >>> PartialPage
> >>> is not working. I may get wrong here. Any suggestion or information
> >>> about
> >>> this issue?
> >>>
> >>> Thanks
> >>>
> >>> Pdt
> >>>
> >>>
> >>> --
> >>> View this message in context:
> >>> http://www.nabble.com/Integrate-AjaxAnywhere-with-Trinidad-Poll-tf416.html#a12341525
> >>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Integrate-AjaxAnywhere-with-Trinidad-Poll-tf416.html#a12360056
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Re: Integrate AjaxAnywhere with Trinidad Poll

2007-08-27 Thread pdt_p

Hi guys,

Thank you for the suggestion. the reason I am using AA with Trinidad because
Tomahawk Tree2. I have to expand or collapse the tree without need reloading
the page but only the Tree2 zone.

As you guys said that there should be no reason to use AA if I am using
Trinidad. 
Please suggest me, what's ajax library that will be suitable for Trinidad? 
We have problem integrating Ajax4Jsf with Trinidad then we move to AA.

Thank you.

Pdt


Scott O'Bryan wrote:
> 
> Yeah, I totally agree with this.  Having 2 js libraries interact with 
> the XMLHttpRequest is bound to cause some problems.  I imagine that the 
> issue your facing is that AA's AJAX implementation is conflicting with 
> Trinidad's AJAX implementation.  Either way, there should be no reason 
> to use AA if you are using Trinidad.
> 
> Scott
> 
> Andrew Robinson wrote:
>> Why use AA with Trinidad. AA doesn't give you any functionality that
>> Trinidad already has. My suggestion is to definitely stop using AA.
>>
>> On 8/26/07, pdt_p <[EMAIL PROTECTED]> wrote:
>>   
>>> Hi guys,
>>>
>>> I just wonder is there anyone has successfully integrate AjaxAnywhere
>>> with
>>> Trinidad poll element?
>>> I have tried to integrate it and the result, the poll listener will only
>>> be
>>> executed once. It happen only after the page is rendered and after that
>>> the
>>> poll listener never get executed anymore unless I refresh my page.
>>> In this page I have substitute the form submit to ajaxanywhere form
>>> submit
>>> through this script:
>>> ajaxAnywhere.formName = "testForm";
>>> ajaxAnywhere.bindById();
>>> ajaxAnywhere.substituteFormSubmitFunction();
>>>
>>>
>>> Second question, When I paly around with AA seems like Trinidad
>>> PartialPage
>>> is not working. I may get wrong here. Any suggestion or information
>>> about
>>> this issue?
>>>
>>> Thanks
>>>
>>> Pdt
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Integrate-AjaxAnywhere-with-Trinidad-Poll-tf416.html#a12341525
>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>
>>>
>>> 
>>
>>   
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Integrate-AjaxAnywhere-with-Trinidad-Poll-tf416.html#a12360056
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[Trinidad] Howto enable scollbars on tr:table

2007-08-27 Thread Christian Klocker
actually i simple use a css-style like (height:400px;overflow:auto) to get a 
vertical scrollbar on tr:table. the problem withit is, that now the header is 
also scrolling ... at 
http://www.oracle.com/technology/products/adf/adffaces/11/doc/multiproject/adf-richclient-api/enhanced-tagdoc.html
 i saw the table-component with scollbars ... is there a solution for trinidad?

thanks
christian


Re: [Fwd: Re: [Fwd: Re: [Trinidad] XMLMenuModel bug]]

2007-08-27 Thread Luka Surija
I think that you didn't read carefully my first post. Maybe I give you 
to little information. Here are some additional infos:


If I call my action by tr:commandButton everything works (navigation + 
internal code execution). It doesn't work only in XMLMenuModel. Of 
course I've setup my navigation in this way:



*service:workingTaskWizard*
/service/workingTaskWizard.*jspx*

.
.
.


I have more than 30 item nodes in my menu-model.xml, but all other are 
hard-coded navigation strings:


for example:

action="*service:workingTasks*" 
focusViewId="/service/workingTasks.xhtml" />



If press this navigation button (it is in level 2) then it jumps to 
desidered page, but invoking this action doesn't work. I know that I 
should do it with actionListener, but I was lazy to create another 
method, so I did for testing purpose put my code in this method to act 
like navigation method, but it looks like something is wrong and I can't 
figure what.


public String addNewWorkingTask(){
   sessionBean.addNewWorkingTask();
   return "*service:workingTaskWizard"; -- invoking in 
tr:commandMenuItem  act as where "return null;*"

   }



The same odd thing I have with dialog framework. I call an dialog on 
this way than it works:


 ---> new 
popup window is shown, but
 --> 
nothing is happening


public String showPopup(){
return "dialog:popup";
}


Of course for all other cases (navigation trough EL expression) it works 
fine.


I don't know it this has something to do that I'm using following 
configuration:


facelets 1.1.12
trinidad 1.0.3-core trunk
JSF RI 1.2
glassfish v2 b50

Regards
Luka


Gary Kind wrote:



 Original Message 
Subject:Re: [Fwd: Re: [Trinidad] XMLMenuModel bug]
Date:   Mon, 27 Aug 2007 10:03:14 -0700
From:   Jeanne Waldman <[EMAIL PROTECTED]>
To: Gary Kind <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>



Hey, don't tell me, tell the list. :)

Gary Kind wrote:
This is not a bug. The "action" attribute does not perform 
navigation. The value, or the value returned by an EL expression, for 
the action attribute must be a string that matches a navigation-case 
from-outcome in your faces-config.xml. THAT is what does the navigation.


Actually, the XMLMenuModel, although it can work for Menus, was meant 
for tabbed navigation. It really is a navigation model.


Here is what Luka has done:

> WorkingTaskAdmin:
>
> public String addNewWorkingTask(){
>sessionBean.addNewWorkingTask();
>return "*service:workingTaskWizard"; -- invoking in 
> tr:commandMenuItem  act as where "return null;*"

>}
>
> menu-model.xml:
>
> > action="*#{WorkingTaskAdmin.addNewWorkingTask}*" 
> focusViewId="/service/workingTaskWizard.xhtml" />
  
The string returned (in bold) is certainly NOT a navigation-case 
from-outcome. Luka should have a navigation-case in his 
faces-config.xml that resembles this:




goToWorkingWizard
/service/workingTaskWizard.*jspx*

.
.
.


His Bean should look like this:

WorkingTaskAdmin:

public String addNewWorkingTask()
{
sessionBean.addNewWorkingTask();
return "goToWorkingWizard";
}

and his menu-model.xml itemNode should look like this:

  action="#{WorkingTaskAdmin.addNewWorkingTask}" 
  focusViewId="/service/workingTaskWizard.*jspx*" />
  





Jeanne Waldman wrote:

FYI, in case you missed it.

 Original Message 
Subject:Re: [Trinidad] XMLMenuModel bug
Date:   Fri, 24 Aug 2007 13:03:54 +0200
From:   Luka Surija <[EMAIL PROTECTED]> 
Reply-To: 	MyFaces Discussion  

To: 	MyFaces Discussion  

References: 	<[EMAIL PROTECTED]> 





Actually nothing happens, I've found that Firebug is displaying this 
error message:


validatorArray has no properties:

_multiValidate(form#j_id1 index.xhtml, "j_id5:0:j_id6", ["j_id28", 0, 
undefined, 17 more...])Common1_0_3.js (line 5248)
_validateInline(form#j_id1 index.xhtml, "j_id5:0:j_id6", ["j_id28", 0, 
undefined, 17 more...])Common1_0_3.js (line 4589)
_j_id1Validator(form#j_id1 index.xhtml, "j_id5:0:j_id6")index.xhtml 
(line 245)
_validateForm(form#j_id1 index.xhtml, "j_id5:0:j_id6")Common1_0_3.js 
(line 4508)
submitForm(form#j_id1 index.xhtml, 1, Object source=j_id5:0:j_id6, 
undefined)Common1_0_3.js (line 4765)

onclick(click clientX=0, clientY=0)index.xhtml (line 1)
for(var j=0;j If found pretty dummy bug in XMLMenuModel.
>
> If I call an action method trough XMLMenuModel then the method is 
> executed, but no navigation is executed.

>
>
> WorkingTaskAdmin:
>
> public String addNewWorkingTask(){
>sessionBean.addNewWorkingTask();
>return "service:workingTaskWizard"; -- invoking in 
> tr:commandMenuItem  act as where "return null;"

>}
>
> menu-model.xml:
>
> > action="#{WorkingTaskAdmin.addNewWorkingTask}" 
> focusViewId="/service/workingTaskWizard.xhtml" />

>
>
> but if i press this button then 

Re: HtmlResponseWriterImpl: HTML nesting warning on closing span

2007-08-27 Thread mraible

I get a similar error in an application that has no customized components.

WARN - HtmlResponseWriterImpl.endElement(234) | HTML nesting warning on
closing td: element input rendered by component : {Component-Path : [Class:
org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /userForm.xhtml][Class:
javax.faces.component.html.HtmlForm,Id: userForm][Class:
javax.faces.component.html.HtmlPanelGrid,Id: j_id5][Class:
javax.faces.component.html.HtmlPanelGroup,Id: j_id13][Class:
javax.faces.component.html.HtmlCommandButton,Id: cancel]} not explicitly
closed

Since this is obviously an invalid warning (IDEA claims to markup errors),
any idea how to suppress this message? Is it coming from Ajax4JSF or
MyFaces? I tried adding the following to my log4j.xml, but no dice:





Thanks,

Matt


mraible wrote:
> 
> I have a custom PanelGrid component and for some reason when I use
> h:panelGroup, it spits out the following warning:
> 
> WARN [btpool0-1] HtmlResponseWriterImpl.endElement(234) | HTML nesting
> warning on closing span: element input rendered by component :
> {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId:
> /userForm.xhtml][Class: javax.faces.component.html.HtmlForm,Id:
> userForm][Class: javax.faces.component.html.HtmlPanelGrid,Id:
> j_id4][Class: javax.faces.component.html.HtmlPanelGroup,Id: j_id5][Class:
> javax.faces.component.html.HtmlCommandButton,Id: j_id7]} not explicitly
> closed
> WARN [btpool0-1] HtmlResponseWriterImpl.endElement(234) | HTML nesting
> warning on closing span: element input rendered by component :
> {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId:
> /userForm.xhtml][Class: javax.faces.component.html.HtmlForm,Id:
> userForm][Class: javax.faces.component.html.HtmlPanelGrid,Id:
> j_id4][Class: javax.faces.component.html.HtmlPanelGroup,Id: j_id93][Class:
> javax.faces.component.html.HtmlCommandButton,Id: j_id95]} not explicitly
> closed
> 
> Any idea what's causing this? It looks like it's wrapping a span around
> the buttons and thinks I don't have a closing panelGroup for some reason.
> Here's what I have in my Facelets view:
> 
> 
> 
> 
>  action="#{userForm.save}" styleClass="button"/>
> 
>  action="#{userForm.delete}"
> styleClass="button" onclick="bCancel=true; return
> confirmDelete('User')"/>
> 
>  action="#{userForm.cancel}" immediate="true"
> styleClass="button" onclick="bCancel=true"/>
> 
> 
> 
> Here's my custom PanelGridRenderer:
> 
> http://static.appfuse.org/appfuse-jsf/xref/org/appfuse/webapp/jsf/PanelGridRenderer.html
> 
> Thanks,
> 
> Matt
> 

-- 
View this message in context: 
http://www.nabble.com/HtmlResponseWriterImpl%3A-HTML-nesting-warning-on-closing-span-tf4338701.html#a12359176
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: @PostConstruct - managed properties not set first

2007-08-27 Thread mraible

Is there a working example that uses @PostConstruct I can look at? Google
doesn't seem to help much on this one. A bunch of folks saying it works, but
no proof. ;-)

Thanks,

Matt


mraible wrote:
> 
> I'm trying to use @PostConstruct with MyFaces 1.2.0 as described by Jacob
> Hookom:
> 
> http://weblogs.java.net/blog/jhook/archive/2007/05/jsf_12_ri_backi.html
> 
> I added the javax.annotation dependency to my pom.xml:
> 
> 
> javax.annotation
> jsr250-api
> 1.0
> 
> 
> My managed bean looks as follows:
> 
> 
> userForm
> org.appfuse.web.UserForm
> request
> 
> id
> #{param.id}
> 
> 
> userManager
> #{userManager}
> 
> 
> 
> If I fire up a debugger, my @PostConstruct method gets hit, but none of my
> managed properties have been initialized. Even if I pass in ?id=12.
> 
> I'm using the latest release of the maven-jetty-plugin (6.1H.5-beta). 
> 
> Any ideas?
> 
> Thanks,
> 
> Matt
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/%40PostConstruct---managed-properties-not-set-first-tf4337121.html#a12359140
Sent from the MyFaces - Users mailing list archive at Nabble.com.



HtmlResponseWriterImpl: HTML nesting warning on closing span

2007-08-27 Thread mraible

I have a custom PanelGrid component and for some reason when I use
h:panelGroup, it spits out the following warning:

WARN [btpool0-1] HtmlResponseWriterImpl.endElement(234) | HTML nesting
warning on closing span: element input rendered by component :
{Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId:
/userForm.xhtml][Class: javax.faces.component.html.HtmlForm,Id:
userForm][Class: javax.faces.component.html.HtmlPanelGrid,Id: j_id4][Class:
javax.faces.component.html.HtmlPanelGroup,Id: j_id5][Class:
javax.faces.component.html.HtmlCommandButton,Id: j_id7]} not explicitly
closed
WARN [btpool0-1] HtmlResponseWriterImpl.endElement(234) | HTML nesting
warning on closing span: element input rendered by component :
{Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId:
/userForm.xhtml][Class: javax.faces.component.html.HtmlForm,Id:
userForm][Class: javax.faces.component.html.HtmlPanelGrid,Id: j_id4][Class:
javax.faces.component.html.HtmlPanelGroup,Id: j_id93][Class:
javax.faces.component.html.HtmlCommandButton,Id: j_id95]} not explicitly
closed

Any idea what's causing this? It looks like it's wrapping a span around the
buttons and thinks I don't have a closing panelGroup for some reason. Here's
what I have in my Facelets view:












Here's my custom PanelGridRenderer:

http://static.appfuse.org/appfuse-jsf/xref/org/appfuse/webapp/jsf/PanelGridRenderer.html

Thanks,

Matt
-- 
View this message in context: 
http://www.nabble.com/HtmlResponseWriterImpl%3A-HTML-nesting-warning-on-closing-span-tf4338701.html#a12358845
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[Trinidad] ppr: partialTriggers doesn't work if there are validation messages?

2007-08-27 Thread Andrew Robinson
I have a login form with a login command link. The form is a
panelFormLayout with panelLabelAndMessage components with inputText
components (username and password).

I have:

...
  

  
...

Now the panel is not updated because the code to trigger the PPR is in
the broadcast method of the UIXCommand (parent of the command link).
The validation error causes the ActionEvent to not be broadcast, and
thus the PPR is not properly triggered.

Should this be considered a bug?

Should the "adfContext.partialUpdateNotify(component);" call be made
from the queueEvent method rather than the broadcast method?

Or is there a different way to do this that I am missing?

Another nice feature would be to automatically have the
panelLabelAndMessage and panelFormLayout components automatically get
re-rendered if there is a validation or conversion error in one of
their nested children components.

Thanks,
Andrew


Re: Russian characters of a filename in the dialogue to open or to save the file, turn to hieroglyphs. (tomcat apache Myfaces)

2007-08-27 Thread Volker Weber
Hi,

to get the correct encoded filename i do this:

  String encoding = request.getCharacterEncoding();
  if (encoding == null) {
encoding = "UTF-8";
  }
  String fileName = new String(attachment.getName().getBytes(), encoding);


Regards,
Volker

2007/8/25, Владимир Петров <[EMAIL PROTECTED]>:
> Hello! I'm from Russia. And I not so well speak in English. i am trying to 
> get the data from database to jsp. If the name of the file on English - in 
> the dialogue normal characters, all works. If the name of the file on Russian 
> - in the dialogue hieroglyphs and nothing works. Please respond.
> jsp:
>
> <%@ page contentType="text/html; charset=UTF-8" %>
> <%@ page pageEncoding="UTF-8"%>
> <%@ page import="java.io.File,
>  java.io.InputStream,
>  java.io.FileInputStream,
>  java.io.OutputStream"%>
> <%@ page session="false" %>
> <%
> String fileName = (String)application.getAttribute("fileupload_name");
> String contentType = (String)application.getAttribute("fileupload_type");
> if(contentType!=null){
> response.setContentType(contentType);
> }
>
> StringBuffer contentDisposition = new StringBuffer();
>
> contentDisposition.append("attachment;");
> //URLEncoder.encode(fileName, "UTF-8");
> contentDisposition.append("filename=\"");
> contentDisposition.append(fileName);
> contentDisposition.append("\"");
>
> response.setHeader ("Content-Disposition", contentDisposition.toString());
>
>
> byte[] bytes = (byte[])application.getAttribute("fileupload_bytes");
> if (bytes != null){
> response.getOutputStream().write(bytes);
> }
> %>
>
> Thank by all.
>


Re: Myfaces 1.1.5 and JSTL 1.1.0

2007-08-27 Thread Francisco Passos
Thank you for clearing this up for me.

Is it part of the plan to make these situations work? Or are they structural
limitations with no workaround?

On 8/25/07, simon <[EMAIL PROTECTED]> wrote:
>
> On Fri, 2007-08-24 at 10:12 +0100, Francisco Passos wrote:
> > Good day!
> >
> > I know JSTL is more fully supported in the JSF 1.2 branch of Myfaces.
> > However, I'd like to know specifically what does not or might not work
> > properly when using the JSTL library on myfaces 1.1.5.
>
> JSTL expressions that can change the number of JSF components in the
> view are the main issue So things like having a JSF component within a
> c:if or a c:forEach is a problem.
>
> I think c:if/c:forEach are ok if the condition of the if/forEach does
> not change during the lifetime of the view. I've certainly used c:if
> successfully with JSF to conditionally include subviews, but the subview
> never "disappeared" while the view was active...
>
> Regards,
>
> Simon
>
>
>


[Trinidad] panelLabelAndMessage doesn't render message?

2007-08-27 Thread Andrew Robinson
I presume this is a bug, but wanted to make sure before reporting it.

Code from PanelLabelAndMessageRenderer in 1.0.2:

@Override
  protected boolean hasMessage(
FacesContextcontext,
RenderingContext arc,
UIComponent component,
FacesBean   bean)
  {
return false;
  }

As you can see, a message will never be rendered. The red X appears in
the label, but the message is never rendered as a result of the above
code.

The LabelAndMessage renderer seems to have the correct code, but is
overridden by the above code.

Anyone know the purpose, if any, of this?

Thanks,
Andrew


Re: Russian characters of a filename in the dialogue to open or to save the file, turn to hieroglyphs. (tomcat apache Myfaces)

2007-08-27 Thread David Delbecq

Здравствуйте Владимир!

did you try response.setContentType("application/bin; charset=utf-8"); ?

The main problem is that http header field value only accept brute 
ISO-8859-1, which does not contains cyrilic i think.
According to http specification, it "MAY contain characters from 
character sets other than ISO- 8859-1 [22] 
 only when 
encoded according to the rules of RFC 2047".


I suppose tomcat should do it itself, but i never tried. If not, you may 
need to do i your self by applying rfc 2047 rules to your filename and 
hope your browser supports it :D


http://www.ietf.org/rfc/rfc2047.txt


Владимир Петров a écrit :

Hello! I'm from Russia. And I not so well speak in English. i am trying to get 
the data from database to jsp. If the name of the file on English - in the 
dialogue normal characters, all works. If the name of the file on Russian - in 
the dialogue hieroglyphs and nothing works. Please respond.
jsp:

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page pageEncoding="UTF-8"%>
<%@ page import="java.io.File,
 java.io.InputStream,
 java.io.FileInputStream,
 java.io.OutputStream"%>
<%@ page session="false" %>
<%
String fileName = (String)application.getAttribute("fileupload_name");
String contentType = (String)application.getAttribute("fileupload_type");
if(contentType!=null){
response.setContentType(contentType);
}
   
StringBuffer contentDisposition = new StringBuffer();

contentDisposition.append("attachment;");

//URLEncoder.encode(fileName, "UTF-8");
contentDisposition.append("filename=\"");
contentDisposition.append(fileName);
contentDisposition.append("\"");
 
response.setHeader ("Content-Disposition", contentDisposition.toString());


byte[] bytes = (byte[])application.getAttribute("fileupload_bytes");

if (bytes != null){
response.getOutputStream().write(bytes);
}
%>

Thank by all.
  


Re: Testing JSF 1.2 Managed Beans vs. JSF 1.1

2007-08-27 Thread mraible

Thanks Matthias.

Since I sent this message, I dug into MyFaces test tree and found you were
using AbstractJsfTestCase. So I started to play with it and got everything
passing. Now I need to create a version that subclasses Spring's
AbstractTransactionalDataSourceSpringContextTests so I can get automatic
rollback in my tests. Mocks would work with the current one, but I want to
have the ability to do integration tests as well.

Cheers,

Matt


Matthias Wessendorf-4 wrote:
> 
> see
> 
> http://svn.apache.org/viewvc/myfaces/core/branches/1_2_1/impl/src/test/java/org/apache/myfaces/FacesTestCase.java?revision=555932&view=markup
> 
> or, using Shale Tiger (MockFacesContext12):
> 
> http://svn.apache.org/viewvc/myfaces/core/branches/1_2_1/impl/src/test/java/org/apache/myfaces/application/ApplicationImplTest.java?view=markup
> 
> -M
> 
> 
> 
> On 8/27/07, mraible <[EMAIL PROTECTED]> wrote:
>>
>> Werner - do you have an example of initializing a FacesContext in a JUnit
>> Test?
>>
>> Thanks,
>>
>> Matt
>>
>>
>> Werner Punz-2 wrote:
>> >
>> > Ok Matt I ran into a similar problem in a testmigration of an old
>> > project to myfaces 1.2.
>> >
>> > Following, make sure that you are on a current container version
>> > implementing the newest jsp and servlet apis (in my case tomcat running
>> > on java 5)
>> > then remove all traces to the jsp-api and any el-implementation
>> (however
>> > commons-el has to be still there if you use tomahawk otherwise you will
>> > get an error, tomahawk references commons-el logger somewhere)
>> >
>> > if done it should work.
>> >
>> > The main problem with the migration is that old installs relied on a
>> > hogde podge of various deps into el implementations and servlet specs,
>> > 1.2 is pure jee5 so any older version of the servlet spec or el or jsp
>> > in your runtime classpath is a source of possible problems.
>> >
>> >
>> >
>> >
>> > mraible schrieb:
>> >> I had the following BasePageTestCase class that I've been using to
>> test
>> >> my
>> >> JSF 1.1 pages. Unfortunately, after upgrading to JSF 1.2, it no longer
>> >> works. Here's the stack trace:
>> >>
>> >> ERROR - DefaultFacesInitializer.initFaces(126) | Error initializing
>> >> MyFaces:
>> >> null
>> >> java.lang.NullPointerException
>> >> at
>> >>
>> org.apache.myfaces.webapp.DefaultFacesInitializer.initFaces(DefaultFacesInitializer.java:102)
>> >> at
>> >>
>> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:57)
>> >> at
>> >>
>> org.appfuse.web.BasePageTestCase.performFacesContextConfig(BasePageTestCase.java:58)
>> >> at
>> >> org.appfuse.web.BasePageTestCase.(BasePageTestCase.java:50)
>> >> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> >> Method)
>> >> at
>> >>
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>> >> at
>> >>
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>> >> org.apache.maven.surefire.booter.SurefireExecutionException:
>> >> org.appfuse.web.UserFormTest; nested exception is
>> >> java.lang.ExceptionInInitializerError: null; nested exception is
>> >> org.apache.maven.surefire.testset.TestSetFailedException:
>> >> org.appfuse.web.UserFormTest; nested exception is
>> >> java.lang.ExceptionInInitializerError: null
>> >> org.apache.maven.surefire.testset.TestSetFailedException:
>> >> org.appfuse.web.UserFormTest; nested exception is
>> >> java.lang.ExceptionInInitializerError: null
>> >> java.lang.ExceptionInInitializerError
>> >> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> >> Method)
>> >> at
>> >>
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>> >> at
>> >>
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>> >> at
>> >> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>> >> at junit.framework.TestSuite.createTest(TestSuite.java:54)
>> >> at junit.framework.TestSuite.addTestMethod(TestSuite.java:280)
>> >> at junit.framework.TestSuite.(TestSuite.java:140)
>> >> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> >> Method)
>> >> at
>> >>
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>> >> at
>> >>
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>> >> at
>> >> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>> >> at
>> >>
>> org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject(JUnitTestSet.java:151)
>> >> at
>> >>
>> org.apache.maven.surefire.junit.JUnitTestSet.getTestCount(JUnitTestSet.java:247)
>> >> at
>> >>
>> org.apache.maven.surefire.suite.AbstractDirect

Re: Testing JSF 1.2 Managed Beans vs. JSF 1.1

2007-08-27 Thread Matthias Wessendorf
see

http://svn.apache.org/viewvc/myfaces/core/branches/1_2_1/impl/src/test/java/org/apache/myfaces/FacesTestCase.java?revision=555932&view=markup

or, using Shale Tiger (MockFacesContext12):

http://svn.apache.org/viewvc/myfaces/core/branches/1_2_1/impl/src/test/java/org/apache/myfaces/application/ApplicationImplTest.java?view=markup

-M



On 8/27/07, mraible <[EMAIL PROTECTED]> wrote:
>
> Werner - do you have an example of initializing a FacesContext in a JUnit
> Test?
>
> Thanks,
>
> Matt
>
>
> Werner Punz-2 wrote:
> >
> > Ok Matt I ran into a similar problem in a testmigration of an old
> > project to myfaces 1.2.
> >
> > Following, make sure that you are on a current container version
> > implementing the newest jsp and servlet apis (in my case tomcat running
> > on java 5)
> > then remove all traces to the jsp-api and any el-implementation (however
> > commons-el has to be still there if you use tomahawk otherwise you will
> > get an error, tomahawk references commons-el logger somewhere)
> >
> > if done it should work.
> >
> > The main problem with the migration is that old installs relied on a
> > hogde podge of various deps into el implementations and servlet specs,
> > 1.2 is pure jee5 so any older version of the servlet spec or el or jsp
> > in your runtime classpath is a source of possible problems.
> >
> >
> >
> >
> > mraible schrieb:
> >> I had the following BasePageTestCase class that I've been using to test
> >> my
> >> JSF 1.1 pages. Unfortunately, after upgrading to JSF 1.2, it no longer
> >> works. Here's the stack trace:
> >>
> >> ERROR - DefaultFacesInitializer.initFaces(126) | Error initializing
> >> MyFaces:
> >> null
> >> java.lang.NullPointerException
> >> at
> >> org.apache.myfaces.webapp.DefaultFacesInitializer.initFaces(DefaultFacesInitializer.java:102)
> >> at
> >> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:57)
> >> at
> >> org.appfuse.web.BasePageTestCase.performFacesContextConfig(BasePageTestCase.java:58)
> >> at
> >> org.appfuse.web.BasePageTestCase.(BasePageTestCase.java:50)
> >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> >> Method)
> >> at
> >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> >> at
> >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> >> org.apache.maven.surefire.booter.SurefireExecutionException:
> >> org.appfuse.web.UserFormTest; nested exception is
> >> java.lang.ExceptionInInitializerError: null; nested exception is
> >> org.apache.maven.surefire.testset.TestSetFailedException:
> >> org.appfuse.web.UserFormTest; nested exception is
> >> java.lang.ExceptionInInitializerError: null
> >> org.apache.maven.surefire.testset.TestSetFailedException:
> >> org.appfuse.web.UserFormTest; nested exception is
> >> java.lang.ExceptionInInitializerError: null
> >> java.lang.ExceptionInInitializerError
> >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> >> Method)
> >> at
> >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> >> at
> >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> >> at
> >> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> >> at junit.framework.TestSuite.createTest(TestSuite.java:54)
> >> at junit.framework.TestSuite.addTestMethod(TestSuite.java:280)
> >> at junit.framework.TestSuite.(TestSuite.java:140)
> >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> >> Method)
> >> at
> >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> >> at
> >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> >> at
> >> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> >> at
> >> org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject(JUnitTestSet.java:151)
> >> at
> >> org.apache.maven.surefire.junit.JUnitTestSet.getTestCount(JUnitTestSet.java:247)
> >> at
> >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:104)
> >> at
> >> org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:150)
> >> at org.apache.maven.surefire.Surefire.run(Surefire.java:111)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >> at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >> at java.lang.reflect.Method.invoke(Method.java:585)
> >> at
> >> org.apache.maven.surefire.booter.Surefir

RE: [Trinidad] Upgrading to 1.0.2

2007-08-27 Thread Perkins, Nate-P63196
Can this be expected in 1.0.3? 


Nate Perkins
480-441-3667
[EMAIL PROTECTED]

>This email message is for the sole use of the intended recipient(s) and
may contain GDC4S
> confidential or privileged information. Any unauthorized review, use,
disclosure or distribution
> is prohibited. If you are not an intended recipient, please contact
the sender by reply email and
> destroy all copies of the original message.
>

-Original Message-
From: Adam Winer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 23, 2007 8:00 PM
To: MyFaces Discussion
Subject: Re: [Trinidad] Upgrading to 1.0.2

I'm getting the feeling that we really need to add a flag
to at least trh:html or both trh:html and tr:document
that supports forcing quirks mode.

Thoughts?

-- Adam


On 8/23/07, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> You can use IE6 in quirks mode and firefox in standards mode by
> subclassing the tr:document renderer.
>
> If a comment appears before the doc type, IE will not go into
standards mode.
>
> Here is some code if you want to do it this way to force only IE into
> quirks mode while using tr:document:
>
> public class DocumentRenderer
>   extends
>
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRendere
r
> {
>
>   /**
>*
>*/
>   public DocumentRenderer()
>   {}
>
>   /**
>* @param type
>*/
>   public DocumentRenderer(Type type)
>   {
> super(type);
>   }
>
>   /**
>* @see
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRendere
r#encodeAll(javax.faces.context.FacesContext,
> org.apache.myfaces.trinidad.context.RenderingContext,
> javax.faces.component.UIComponent,
> org.apache.myfaces.trinidad.bean.FacesBean)
>*/
>   @Override
>   protected void encodeAll(FacesContext context, RenderingContext arc,
> UIComponent component, FacesBean bean) throws IOException
>   {
> if (Agent.AGENT_IE.equals(arc.getAgent().getAgentName()))
> {
>   context.getResponseWriter().write("");
> }
> super.encodeAll(context, arc, component, bean);
>   }
> }
>
>
> On 8/23/07, Perkins, Nate-P63196 <[EMAIL PROTECTED]> wrote:
> >
> >
> > I put a lot of time into this problem, albeit a while ago, but I
could not
> > find a way to satisfy my requirements for IE6 in standard mode, I
would love
> > to be able to, but I have not found a way.  I'll post the general
structure
> > and the css and perhaps you can help?
> >
> > The basic structure is this:
> >
> > 
> > Some necessary banner text
> > 
> > 
> > Whatever the particular page requires
> > 
> > 
> > Again, some necessary banner text
> > 
> >
> > The requirement is that the top_bar and the bottom_bar are always
visible
> > and in the same position (at the top and the bottom, respectively :)
) but
> > not covering the main_content while main_content can scroll as
necessary.
> >
> > Here's the css that I used to accomplish this, this works properly
in
> > Firefox regardless of the doc-type, but again, in IE6 it only works
in
> > quirks mode.
> >
> > body {
> > border: 0pt none;
> > margin: 0;
> > padding 0;
> >
> > height: 100%;
> > max-height: 100%;
> >
> > width: 100%;
> > max-width: 100%;
> > overflow: hidden;
> > }
> >
> > * html body {
> > padding: 5px 0pt 55px;
> > }
> >
> > #main_content {
> > bottom: 30px;
> > left: 0px;
> > overflow: auto;
> > position: fixed;
> > right: 0;
> > top: 25px;
> > }
> >
> > * html #main_content {
> > height: 100%;
> > position: relative;
> > width: 100%;
> > }
> >
> > #top_bar {
> > height: 25px;
> >
> > position: absolute;left: 0;
> > top: 0;
> > width: 100%;
> > }
> >
> > #bottom_bar {
> >
> > height: 25px;
> >
> > position: absolute;left: 0;
> > bottom: 0;
> > width: 100%;
> > }
> >
> >
> > Nate Perkins
> > 480-441-3667
> > [EMAIL PROTECTED]
> >
> > This email message is for the sole use of the intended recipient(s)
and may
> > contain GDC4S
> >  confidential or privileged information. Any unauthorized review,
use,
> > disclosure or distribution
> >  is prohibited. If you are not an intended recipient, please contact
the
> > sender by reply email and
> >  destroy all copies of the original message.
> >
> >
> >  
> >  From: Simon Lessard [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 23, 2007 8:21 AM
> >
> > To: MyFaces Discussion
> > Subject: Re: [Trinidad] Upgrading to 1.0.2
> >
> >
> > Hello Nate,
> >
> > So what you're saying is that your application will only ever work
in quirk
> > mode? There's always a solution in standard mode as well, sometimes
a bit
> > more complicated though.
> >
> >
> > Regards,
> >
> > ~ Simon
> >
> >
> > On 8/23/07, Perkins, Nate-P63196 <[EMAIL PROTECTED]> wrote:
> > > I commented out the jsp:output and that fixed the problem.
> > >
> > > Unfortunately I can not live with that solution as it is mandatory
for
> > > my project's pages.  We have a requirement for a fixed bar on top
and on
> > > bottom that do not scroll (while the rest of page obviously does)
and
> > > are always visib

Re: Testing JSF 1.2 Managed Beans vs. JSF 1.1

2007-08-27 Thread mraible

Werner - do you have an example of initializing a FacesContext in a JUnit
Test?

Thanks,

Matt


Werner Punz-2 wrote:
> 
> Ok Matt I ran into a similar problem in a testmigration of an old 
> project to myfaces 1.2.
> 
> Following, make sure that you are on a current container version 
> implementing the newest jsp and servlet apis (in my case tomcat running 
> on java 5)
> then remove all traces to the jsp-api and any el-implementation (however 
> commons-el has to be still there if you use tomahawk otherwise you will 
> get an error, tomahawk references commons-el logger somewhere)
> 
> if done it should work.
> 
> The main problem with the migration is that old installs relied on a 
> hogde podge of various deps into el implementations and servlet specs,
> 1.2 is pure jee5 so any older version of the servlet spec or el or jsp 
> in your runtime classpath is a source of possible problems.
> 
> 
> 
> 
> mraible schrieb:
>> I had the following BasePageTestCase class that I've been using to test
>> my
>> JSF 1.1 pages. Unfortunately, after upgrading to JSF 1.2, it no longer
>> works. Here's the stack trace:
>> 
>> ERROR - DefaultFacesInitializer.initFaces(126) | Error initializing
>> MyFaces:
>> null
>> java.lang.NullPointerException
>> at
>> org.apache.myfaces.webapp.DefaultFacesInitializer.initFaces(DefaultFacesInitializer.java:102)
>> at
>> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:57)
>> at
>> org.appfuse.web.BasePageTestCase.performFacesContextConfig(BasePageTestCase.java:58)
>> at
>> org.appfuse.web.BasePageTestCase.(BasePageTestCase.java:50)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>> org.apache.maven.surefire.booter.SurefireExecutionException:
>> org.appfuse.web.UserFormTest; nested exception is
>> java.lang.ExceptionInInitializerError: null; nested exception is
>> org.apache.maven.surefire.testset.TestSetFailedException:
>> org.appfuse.web.UserFormTest; nested exception is
>> java.lang.ExceptionInInitializerError: null
>> org.apache.maven.surefire.testset.TestSetFailedException:
>> org.appfuse.web.UserFormTest; nested exception is
>> java.lang.ExceptionInInitializerError: null
>> java.lang.ExceptionInInitializerError
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>> at
>> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>> at junit.framework.TestSuite.createTest(TestSuite.java:54)
>> at junit.framework.TestSuite.addTestMethod(TestSuite.java:280)
>> at junit.framework.TestSuite.(TestSuite.java:140)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>> at
>> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>> at
>> org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject(JUnitTestSet.java:151)
>> at
>> org.apache.maven.surefire.junit.JUnitTestSet.getTestCount(JUnitTestSet.java:247)
>> at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:104)
>> at
>> org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:150)
>> at org.apache.maven.surefire.Surefire.run(Surefire.java:111)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
>> at
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
>> Caused by: java.lang.IllegalStateException: No Factories configured for
>> this
>> Application. This happens if the faces-initialization does not work at
>> all -
>> make sure that you properly include all configuration settings necessary
>> for
>> a basic faces application and that all the necessary libs are included.
>> Also
>> check the logging output of your web application and your container for
>> any
>> exceptio

@PostConstruct - managed properties not set first

2007-08-27 Thread mraible

I'm trying to use @PostConstruct with MyFaces 1.2.0 as described by Jacob
Hookom:

http://weblogs.java.net/blog/jhook/archive/2007/05/jsf_12_ri_backi.html

I added the javax.annotation dependency to my pom.xml:


javax.annotation
jsr250-api
1.0


My managed bean looks as follows:


userForm
org.appfuse.web.UserForm
request

id
#{param.id}


userManager
#{userManager}



If I fire up a debugger, my @PostConstruct method gets hit, but none of my
managed properties have been initialized. Even if I pass in ?id=12.

I'm using the latest release of the maven-jetty-plugin (6.1H.5-beta). 

Any ideas?

Thanks,

Matt


-- 
View this message in context: 
http://www.nabble.com/%40PostConstruct---managed-properties-not-set-first-tf4337121.html#a12353855
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Integrate AjaxAnywhere with Trinidad Poll

2007-08-27 Thread Scott O'Bryan
Yeah, I totally agree with this.  Having 2 js libraries interact with 
the XMLHttpRequest is bound to cause some problems.  I imagine that the 
issue your facing is that AA's AJAX implementation is conflicting with 
Trinidad's AJAX implementation.  Either way, there should be no reason 
to use AA if you are using Trinidad.


Scott

Andrew Robinson wrote:

Why use AA with Trinidad. AA doesn't give you any functionality that
Trinidad already has. My suggestion is to definitely stop using AA.

On 8/26/07, pdt_p <[EMAIL PROTECTED]> wrote:
  

Hi guys,

I just wonder is there anyone has successfully integrate AjaxAnywhere with
Trinidad poll element?
I have tried to integrate it and the result, the poll listener will only be
executed once. It happen only after the page is rendered and after that the
poll listener never get executed anymore unless I refresh my page.
In this page I have substitute the form submit to ajaxanywhere form submit
through this script:
ajaxAnywhere.formName = "testForm";
ajaxAnywhere.bindById();
ajaxAnywhere.substituteFormSubmitFunction();


Second question, When I paly around with AA seems like Trinidad PartialPage
is not working. I may get wrong here. Any suggestion or information about
this issue?

Thanks

Pdt


--
View this message in context: 
http://www.nabble.com/Integrate-AjaxAnywhere-with-Trinidad-Poll-tf416.html#a12341525
Sent from the MyFaces - Users mailing list archive at Nabble.com.





  




Re: [Trinidad] Understanding Trinidad Skinning?

2007-08-27 Thread Andrew Robinson
Since I stepped through the code in the server, I can see that the
short names are in that map
(FileSystemStyleCache._getShortStyleClassMap). Besides, I can see all
my changes to the skin reflected in the CSS on the client, so I know
it is not a client side cache issue.

Here is the contents of that map (from a breakpoint in that method):

{p_OraColorPaletteEmptyCell=x95, af|panelBox::medium=x4p,
af|treeTable::path-step=x35,
af|navigationPane::bar-active-disabled=x3d, OraErrorNameText=x8k,
roundedDivContents=xd2, af|treeTable::path-selected-step=x36,
af|menuButtons::text=x5k, af|navigationPane::choice-button=x3r,
af|selectManyListbox::content=x1y, p_OraSideBarMinWidth=xa5,
af|panelFormLayout::separator=x4h, af|navigationPane::tabs-active=x3z,
OraBGAccentDark=x8a, headerPanel=xcv, af|inputFile::content=x22,
af|selectBooleanRadio::group-icon-style=x2u,
af|menuButtons::icon-style=x5l, PortletBodyColor=xb8,
af|outputText=xk, af|column::cell-number=x6x, OraBGGrayMedium=x87,
af|messages::header=x69, af|navigationPane::bar-separator=x3i,
af|inputDate=x1a, af|treeTable::content=x6l,
OraTableControlBarText=xau, p_OraProductBrandingCompactText=xa2,
af|navigationPane::tabs-bottom-mid=x4a,
af|train::parent-end-content=x7w, af|column::header-number=x76,
af|navigationPane::tabs-bottom-start-content=x49,
af|inputChoice::content=x1n, af|selectOneRadio::item-text=,
af|table::control-bar-bottom=x6n, af|column::header-icon-format=x77,
af|train=, af|outputDocument::separator=xp,
af|selectManyCheckbox::required-icon-style=x2k,
af|panelPopup::content=x5j, af|inputFile=x1b, AFDataText=x2,
af|selectOneChoice=x1j, af|panelTabbed::body=xcq,
af|navigationPane::list-active-enabled=x3t,
af|inputNumberSpinbox::increment-cell=x1r, af|panelBox::dark=x4q,
af|selectBooleanCheckbox::label=xv,
af|panelBox::content-transparent=x52, AFPostalCodeFieldTextMarker=x2b,
helpTabUpperLeft=xct, af|selectOneRadio=x1l, af|panelBox::bottom=x4x,
af|navigationPane::list-inactive-disabled=x3u,
PortletSubHeaderLink=xbi, AFFieldNumberMarker=x28,
af|inputColor::swatch-overlay=x3b, absoluteRoundedDiv=xd1,
af|panelFormLayout::content-cell=x4l, p_OraTreeRow=xb2,
af|messages::error=x68, portlet-table-body=xc0,
PortletSubHeaderText=xbj, af|menuBar::empty=xcf,
af|selectManyCheckbox::group-icon-style=x2w,
af|navigationPane::bar-active-enabled=x3e, OraBGColorMedium=x83,
af|inputFile::label=xs, af|panelPopup::close-icon=x5i,
af|selectOneListbox::label=x13, af|panelAccordion::title-link=xdd,
af|showOnePanel::title-link=x60,
af|navigationPane::tabs-start-join-from-active=x43,
af|chooseDate::title=x9b, AFHeaderLevelThreePlus=x64,
af|navigationPane::list-inactive-enabled=x3v,
af|column::cell-text=x6v, af|panelBox::content-dark=x57,
af|navigationPane::tabs-inactive=x40,
af|inputNumberSpinbox::decrement-cell=x1s,
af|column::sortable-header-number=x7f, OraBGColorVeryDark=x81,
af|selectBooleanCheckbox::content=x23, af|train::parent-end=,
p_OraFooter=x9k, af|selectOneListbox::content=x20,
PortletHeaderLink=xba, af|treeTable::path=x34, af|inputDate::label=xy,
p_OraHideShowDisclosedSymbol=x9q, portlet-section-alternate=xbu,
af|menuPath::step=x38, af|menuBar::body=xcd,
af|rolloverCommandLink::container=xde,
af|showOnePanel::header-collapsed=x5w, af|inputText::content=x1p,
af|train::stop=x7i, OraMessageBoxErrorText=x8i,
af|panelHeader::error=x67, af|column::cell-icon-format=x6z,
p_OraSelected=x91, AFHeaderLevelTwo=x63,
af|selectManyCheckbox::content=x1x, af|column::total-text=x7d,
af|train::overflow-end=, af|treeTable::control-bar-bottom=x6p,
af|column::sortable-header-icon-format=x7g,
af|selectBooleanRadio::required-icon-style=x2i,
af|panelBox::start=x4u, af|panelPage::privacy=x5b,
p_OraDisplayBlock=xb6, af|navigationPane::tabs-end=x47,
OraLinkDisabled=xj, PortletHeaderColor=xb9, portlet-font=xbo,
OraInlineErrorText=x8l, af|panelTabbed::separator=xd3,
OraNav3Selected=xa6, af|inputNumberSpinbox=x1d,
af|inputDate::header=x98, af|inputNumberSpinbox::label=xt,
AFFieldText=x6, af|inputListOfValues::label=xz,
af|navigationPane::tabs-bottom-end-content=x4d,
OraTableBorder=xat, OraLinkText=x8n, OraTableBorder1110=xas,
af|selectManyCheckbox=x1h, af|chooseDate::content=x9d,
af|panelTabbed::orientation-top=xa9, OraTableBorder1011=xap,
af|column::cell-text-band=x6w, OraTableBorder1010=xao,
AFPostalCodeFieldText=x8u, p_OraDisabled=x90,
af|navigationPane::tabs=x3y, af|messages=x6a,
af|outputDocument::title=xn, headerPanelHeaderBox=xcy,
AFFieldNumberDisabled=x9, OraHGridLocatorHeader=x9n,
af|inputDate::required-icon-style=x2j, af|treeTable::locator=x5u,
af|panelTabbed::separator-after-selected=xd5, AFWarningIconStyle=xe,
af|inputChoice::required-icon-style=x2e, OraTableBorder1101=xar,
OraTableBorder1100=xaq, helpButton=xcr,
af|navigationPane::tabs-start-join=x42,
af|panelFormLayout::label-cell=x4j, af|treeTable::focus=x5t,
af|selectBooleanRadio::label=xw, OraStyledList=xa8,
p_OraColorPalette=x94, OraTableBorder1000=xam, OraTableBorder1001=xan,
AFFieldTextDisabled=x7, af|outputDocument::parag

Re: [Trinidad] Understanding Trinidad Skinning?

2007-08-27 Thread Scott O'Bryan
Your browser cache.  I must say that I've been trying this on the 
Trinidad 1.2 branch and I know it works there.  I havn't used 1.1 in a 
while so it's possible something might be broken..


Scott

Andrew Robinson wrote:

Stopped tomcat (version 6 btw), cleaned out the work directory
completely and the temp directory, ran an "mvn clean" on my project
and re-deployment my application, and am still getting the shortened
class names. I checked "/tmp" also and didn't see any files there. Is
there anywhere else I should be looking for such a cache?

On 8/27/07, Scott O'Bryan <[EMAIL PROTECTED]> wrote:
  

Andrew,

Could it also be possible that your stylesheet is cached?  Try clearing
you cache.  This works for me as well.

Scott

Simon Lessard wrote:


Hello Andrew,

It works perfectly fine for me ... What container are you using? Is it
possible that's a very strange container that isn't greedy at all
about trimming white space and that you configured your web.xml the
following way?


  
org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
  
  true


Also, can you check the parameter value from the ExternalContext to
see if it get configured correctly to true?


Regards,

~ Simon

On 8/27/07, *Andrew Robinson* <[EMAIL PROTECTED]
> wrote:

yes, I also have the debug-output set to true in my
trinidad-config.xml. But I am still getting the ".x6v" type of CSS
styles with
org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
set to true in the web.xml

FYI, this is version 1.0.2 that I am using

On 8/27/07, Petr Kotek < [EMAIL PROTECTED]
> wrote:
> Hello Andrew,
>
> I am using also
> true
> in trinidad-config.xml
>
> But I am not sure if this is responsible to decrypt css style
names ...
>
> Regards,
> Peter
>
> Simon Lessard wrote:
> > Hello Andrew,
> >
> > Disabling compression does just that... .af_inputText_content
is very
> > readable imho. the underscore after af is always coming from |
while
> > all other underscores were translated from ::, also you can always
> > remove the dot if the generated selector starts with .af_. So,
> > .af_inputText_content comes from af|inputText::content.
> >
> >
> > Regards,
> >
> > ~ Simon
> >
> > On 8/26/07, *Andrew Robinson* <[EMAIL PROTECTED]

> > >> wrote:
> >
> > Disabling the style compression only seems to help a
little bit. The
> > FileSystemStyleCache._getShortStyleClassMap still returns
unreadable
> > styles. For example, one of the selectors firebug showed was:
> >
> > .x6v, .portlet-section-selected, .xbv,
.portlet-table-selected, .xc2 {
> >
> > the .x* styles are really near impossible to know where
they came
> > from.
> >
> > Is there an easy way to get all styles to stay in a
readable state?
> >
> > Thanks,
> > Andrew
> >
> > On 7/30/07, Jeanne Waldman <[EMAIL PROTECTED]

> > mailto:[EMAIL PROTECTED]>>> wrote:
> > > Another tip:
> > >
> > > Use Firebug. It allows you to view the css that is
rendered on a
> > > component by default and then you can inhibit anything
you want
> > in your
> > > skin using -tr-inhibit.
> > >
> > > Also, by default we compress the styleclass names to boost
> > performance.
> > > While creating your skin, you can disable this
compression so
> > that you
> > > can see styleclass names that more closely resemble the css
> > selectors.
> > >
> > > To do this, add to your web.xml file:
> > >
> > > 
> >
>  
org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION

> > >  true
> > > 
> > >
> > > And finally, looking at the xss files like Abhijit
suggests will
> > help you as well.
> > >
> > > - Jeanne
> > >
> > >
> > > Abhijit Ghosh wrote:
> > > > Chris,
> > > >
> > > > On 7/28/07, *Chris Hane* <[EMAIL PROTECTED]

> > >
> > > > mailto:[EMAIL PROTECTED]>
 > > >
> > > >
> > > > We are trying to create our own custom skin for
Trinidad and I
> > > > have a basic
> > > > question:
> > > >
> > > > First, where do the defaults for a paticular
element come
> > from?  For
> > > > example, we are trying to skin
> > "af:column::header-text

Re: cambo list with multiple choice

2007-08-27 Thread Andrew Robinson
That looks right.

If you want it to look better, try:


...

Modify to get the effect you want

-Andrew

On 8/27/07, lmk <[EMAIL PROTECTED]> wrote:
>
> it's  weird!!
>
> here the code i use:
>
>   
>   
>   
>   
>   
>   
>   
> 
>
> and the page is like :
>
> http://www.nabble.com/file/p12352867/manymenu.jpg
>
>
> do you see the problem ..?
>
>
> lmk wrote:
> >
> >
> > ok but i have a long list, and it's not eazy to  have all choices..i
> > thinks that it exists a select box like   with
> > possibility to selet many items with the CTRL key..
> >
> >
> >
> > Andrew Robinson-5 wrote:
> >>
> >> That is what h:selectManyMenu is. What HTML control are you trying to
> >> produce?
> >>
> >> A select box with multiple selection enabled is just a control with a
> >> border with one line per option tag, so it looks like a text area.
> >>
> >> On 8/27/07, lmk <[EMAIL PROTECTED]> wrote:
> >>>
> >>> But I'd like to a get  multiple select ..
> >>>
> >>>
> >>>
> >>>
> >>> Andrew Robinson-5 wrote:
> >>> >
> >>> > 
> >>> >
> >>> > On 8/27/07, lmk <[EMAIL PROTECTED]> wrote:
> >>> >>
> >>> >> sorry i talk about combo list ..
> >>> >>
> >>> >> I'd like to use standard components but i dont have the render that i
> >>> >> want..
> >>> >>
> >>> >> with
> >>> >>  i dont get a select box but  thing like text area
> >>> >> with
> >>> >> values to select..
> >>> >>
> >>> >>
> >>> >>
> >>> >>
> >>> >>
> >>> >>
> >>> >> Bruno Aranda wrote:
> >>> >> >
> >>> >> > Sorry, then I do not know what a "cambo" list is. I was thinking
> >>> that
> >>> >> > you were refering to a "combo" list, which for me is what the
> >>> >> > selectManyMenu does - a drop down list that allows multiple
> >>> selection.
> >>> >> > Can you explain what a cambo list is?
> >>> >> >
> >>> >> > Cheers,
> >>> >> >
> >>> >> > Bruno
> >>> >> >
> >>> >> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
> >>> >> >>
> >>> >> >> the standard selectManyMenu render is not like a cambo list..
> >>> >> >> see  the render ont the right selectManyMenu, on the left
> >>> >> >> selectManyListBox
> >>> >> >>
> >>> >> >>
> >>> >> >> http://www.nabble.com/file/p12350965/debug.jpg
> >>> >> >>
> >>> >> >>
> >>> >> >>
> >>> >> >> Bruno Aranda wrote:
> >>> >> >> >
> >>> >> >> > What about the standard h:selectManyMenu?
> >>> >> >> >
> >>> >> >> > Cheers,
> >>> >> >> >
> >>> >> >> > Bruno
> >>> >> >> >
> >>> >> >> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
> >>> >> >> >>
> >>> >> >> >> helloo guys;
> >>> >> >> >>
> >>> >> >> >> Im struggled to find a useful JSF component that looks like a
> >>> cambo
> >>> >> >> but
> >>> >> >> >> with
> >>> >> >> >> a multiple choice possibility; the myfaces or tomawahk
> >>> >> >> selectManyListbox
> >>> >> >> >> can' be rendered as well as a cambo list..
> >>> >> >> >> Im using  myfaces,facelets,rich faces and rcFaces..
> >>> >> >> >>
> >>> >> >> >> do you have any solution for select many choice on a cambo
> >>> list..?
> >>> >> >> >>
> >>> >> >> >> thanks a lot..
> >>> >> >> >>
> >>> >> >> >>
> >>> >> >> >>
> >>> >> >> >> --
> >>> >> >> >> View this message in context:
> >>> >> >> >>
> >>> >> >>
> >>> >>
> >>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12345542
> >>> >> >> >> Sent from the MyFaces - Users mailing list archive at
> >>> Nabble.com.
> >>> >> >> >>
> >>> >> >> >>
> >>> >> >> >
> >>> >> >> >
> >>> >> >>
> >>> >> >> --
> >>> >> >> View this message in context:
> >>> >> >>
> >>> >>
> >>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12350965
> >>> >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>> >> >>
> >>> >> >>
> >>> >> >
> >>> >> >
> >>> >>
> >>> >> --
> >>> >> View this message in context:
> >>> >>
> >>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12351663
> >>> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>> >>
> >>> >>
> >>> >
> >>> >
> >>>
> >>> --
> >>> View this message in context:
> >>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12352009
> >>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>>
> >>>
> >>
> >>
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12352867
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


tomahawk panelTabbedPane with multiple dataTable and dataScroller

2007-08-27 Thread �rico
I have a panelTabbedPane and 4 panelTabs declared int it :





 ... 

In all my four tabs I would like to use dataTable and dataScroller 

It works ok for the dataTable in my first tab but when I try to paginate 
through scroller in tab1 dataTable it affects the state from the dataTable in 
my second tab 

For example in my first tab dataTable1 I have 10 records and in my second tab 
another dataTable contains only one record 
When I use the dataScroller in my first tab the dataTable in my second tab gets 
two more elements like the first one ...

All dataTables point to diferent DataModels and all dataScrollers have diferent 
actionListeners

Can I do that ? I mean to use dataTables and dataScrollers in diferents xhtml 
files and each one of these files be added in panelTabbedPane ?
 
   
-
Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.

Re: cambo list with multiple choice

2007-08-27 Thread lmk

it's  weird!!

here the code i use:

  
  
  
  
  
  
  


and the page is like :

http://www.nabble.com/file/p12352867/manymenu.jpg 


do you see the problem ..?


lmk wrote:
> 
> 
> ok but i have a long list, and it's not eazy to  have all choices..i
> thinks that it exists a select box like   with
> possibility to selet many items with the CTRL key..
> 
> 
> 
> Andrew Robinson-5 wrote:
>> 
>> That is what h:selectManyMenu is. What HTML control are you trying to
>> produce?
>> 
>> A select box with multiple selection enabled is just a control with a
>> border with one line per option tag, so it looks like a text area.
>> 
>> On 8/27/07, lmk <[EMAIL PROTECTED]> wrote:
>>>
>>> But I'd like to a get  multiple select ..
>>>
>>>
>>>
>>>
>>> Andrew Robinson-5 wrote:
>>> >
>>> > 
>>> >
>>> > On 8/27/07, lmk <[EMAIL PROTECTED]> wrote:
>>> >>
>>> >> sorry i talk about combo list ..
>>> >>
>>> >> I'd like to use standard components but i dont have the render that i
>>> >> want..
>>> >>
>>> >> with
>>> >>  i dont get a select box but  thing like text area
>>> >> with
>>> >> values to select..
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> Bruno Aranda wrote:
>>> >> >
>>> >> > Sorry, then I do not know what a "cambo" list is. I was thinking
>>> that
>>> >> > you were refering to a "combo" list, which for me is what the
>>> >> > selectManyMenu does - a drop down list that allows multiple
>>> selection.
>>> >> > Can you explain what a cambo list is?
>>> >> >
>>> >> > Cheers,
>>> >> >
>>> >> > Bruno
>>> >> >
>>> >> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
>>> >> >>
>>> >> >> the standard selectManyMenu render is not like a cambo list..
>>> >> >> see  the render ont the right selectManyMenu, on the left
>>> >> >> selectManyListBox
>>> >> >>
>>> >> >>
>>> >> >> http://www.nabble.com/file/p12350965/debug.jpg
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> Bruno Aranda wrote:
>>> >> >> >
>>> >> >> > What about the standard h:selectManyMenu?
>>> >> >> >
>>> >> >> > Cheers,
>>> >> >> >
>>> >> >> > Bruno
>>> >> >> >
>>> >> >> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
>>> >> >> >>
>>> >> >> >> helloo guys;
>>> >> >> >>
>>> >> >> >> Im struggled to find a useful JSF component that looks like a
>>> cambo
>>> >> >> but
>>> >> >> >> with
>>> >> >> >> a multiple choice possibility; the myfaces or tomawahk
>>> >> >> selectManyListbox
>>> >> >> >> can' be rendered as well as a cambo list..
>>> >> >> >> Im using  myfaces,facelets,rich faces and rcFaces..
>>> >> >> >>
>>> >> >> >> do you have any solution for select many choice on a cambo
>>> list..?
>>> >> >> >>
>>> >> >> >> thanks a lot..
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> --
>>> >> >> >> View this message in context:
>>> >> >> >>
>>> >> >>
>>> >>
>>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12345542
>>> >> >> >> Sent from the MyFaces - Users mailing list archive at
>>> Nabble.com.
>>> >> >> >>
>>> >> >> >>
>>> >> >> >
>>> >> >> >
>>> >> >>
>>> >> >> --
>>> >> >> View this message in context:
>>> >> >>
>>> >>
>>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12350965
>>> >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>> >> >>
>>> >> >>
>>> >> >
>>> >> >
>>> >>
>>> >> --
>>> >> View this message in context:
>>> >>
>>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12351663
>>> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>> >>
>>> >>
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12352009
>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12352867
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] Understanding Trinidad Skinning?

2007-08-27 Thread Andrew Robinson
Stopped tomcat (version 6 btw), cleaned out the work directory
completely and the temp directory, ran an "mvn clean" on my project
and re-deployment my application, and am still getting the shortened
class names. I checked "/tmp" also and didn't see any files there. Is
there anywhere else I should be looking for such a cache?

On 8/27/07, Scott O'Bryan <[EMAIL PROTECTED]> wrote:
> Andrew,
>
> Could it also be possible that your stylesheet is cached?  Try clearing
> you cache.  This works for me as well.
>
> Scott
>
> Simon Lessard wrote:
> > Hello Andrew,
> >
> > It works perfectly fine for me ... What container are you using? Is it
> > possible that's a very strange container that isn't greedy at all
> > about trimming white space and that you configured your web.xml the
> > following way?
> >
> > 
> >   
> > org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
> >   
> >   true
> > 
> >
> > Also, can you check the parameter value from the ExternalContext to
> > see if it get configured correctly to true?
> >
> >
> > Regards,
> >
> > ~ Simon
> >
> > On 8/27/07, *Andrew Robinson* <[EMAIL PROTECTED]
> > > wrote:
> >
> > yes, I also have the debug-output set to true in my
> > trinidad-config.xml. But I am still getting the ".x6v" type of CSS
> > styles with
> > org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
> > set to true in the web.xml
> >
> > FYI, this is version 1.0.2 that I am using
> >
> > On 8/27/07, Petr Kotek < [EMAIL PROTECTED]
> > > wrote:
> > > Hello Andrew,
> > >
> > > I am using also
> > > true
> > > in trinidad-config.xml
> > >
> > > But I am not sure if this is responsible to decrypt css style
> > names ...
> > >
> > > Regards,
> > > Peter
> > >
> > > Simon Lessard wrote:
> > > > Hello Andrew,
> > > >
> > > > Disabling compression does just that... .af_inputText_content
> > is very
> > > > readable imho. the underscore after af is always coming from |
> > while
> > > > all other underscores were translated from ::, also you can always
> > > > remove the dot if the generated selector starts with .af_. So,
> > > > .af_inputText_content comes from af|inputText::content.
> > > >
> > > >
> > > > Regards,
> > > >
> > > > ~ Simon
> > > >
> > > > On 8/26/07, *Andrew Robinson* <[EMAIL PROTECTED]
> > 
> > > >  > >> wrote:
> > > >
> > > > Disabling the style compression only seems to help a
> > little bit. The
> > > > FileSystemStyleCache._getShortStyleClassMap still returns
> > unreadable
> > > > styles. For example, one of the selectors firebug showed was:
> > > >
> > > > .x6v, .portlet-section-selected, .xbv,
> > .portlet-table-selected, .xc2 {
> > > >
> > > > the .x* styles are really near impossible to know where
> > they came
> > > > from.
> > > >
> > > > Is there an easy way to get all styles to stay in a
> > readable state?
> > > >
> > > > Thanks,
> > > > Andrew
> > > >
> > > > On 7/30/07, Jeanne Waldman <[EMAIL PROTECTED]
> > 
> > > >  > >> wrote:
> > > > > Another tip:
> > > > >
> > > > > Use Firebug. It allows you to view the css that is
> > rendered on a
> > > > > component by default and then you can inhibit anything
> > you want
> > > > in your
> > > > > skin using -tr-inhibit.
> > > > >
> > > > > Also, by default we compress the styleclass names to boost
> > > > performance.
> > > > > While creating your skin, you can disable this
> > compression so
> > > > that you
> > > > > can see styleclass names that more closely resemble the css
> > > > selectors.
> > > > >
> > > > > To do this, add to your web.xml file:
> > > > >
> > > > > 
> > > >
> > >  
> > org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
> > 
> > > > >  true
> > > > > 
> > > > >
> > > > > And finally, looking at the xss files like Abhijit
> > suggests will
> > > > help you as well.
> > > > >
> > > > > - Jeanne
> > > > >
> > > > >
> > > > > Abhijit Ghosh wrote:
> > > > > > Chris,
> > > > > >
> > > > > > On 7/28/07, *Chris Hane* <[EMAIL PROTECTED]
> > 
> > > > >
> > > > > > mailto:[EMAIL PROTECTED]>
> >  > > > > >
> > > > > >
> > > > > > We are trying to cr

Re: Dynamic tabs in panelTabbedPane

2007-08-27 Thread Shane Petroff


I don't know if it is doable with the declarative syntax via 
jsp/facelets, but it would be easy to use a parent panel's binding, then 
build your tabs in java code.


Shane


geirgp wrote:

Hi,

Is it possible for the panelTabbedPane to iterate over a java.util.List and
create one tab for each entry in the list?

I tried enclosing the panelTabs in a dataList (see below) but then no tabs
were created and all information from all objects in the list were printed
on the same panel.









  



--
Shane



Re: cambo list with multiple choice

2007-08-27 Thread Andrew Robinson
Yes, that is 

The HTML control is:


  1


the "size" tells the browser how many options should be visible at one
time. So in this case, 5 will be displayed, and if there are more than
5, a scroll bar will be used.

A combo box can only ever select one:


  1


A multiple select is always rendered as a list box (what you call
looking like a text area) by browsers. The drop down box is only
rendered if multiple is set to false (the default).

The selectOneMenu and selectManyMenu JSF controls just render a SELECT
element as shown above by default. You have to remember JSF controls
are simply wrappers that create HTML code.

If using the SELECT with multiple set to true, you can use the CSS
height attribute to override the size to get the height that you want.

Here are the docs on the selectManyMenu:

http://myfaces.apache.org/impl/tlddoc/h/selectManyMenu.html

On 8/27/07, lmk <[EMAIL PROTECTED]> wrote:
>
>
> ok but i have a long list, and it's not eazy to  have all choices..i thinks
> that it exists a select box like   with possibility to
> selet many items with the CTRL key..
>
>
>
> Andrew Robinson-5 wrote:
> >
> > That is what h:selectManyMenu is. What HTML control are you trying to
> > produce?
> >
> > A select box with multiple selection enabled is just a control with a
> > border with one line per option tag, so it looks like a text area.
> >
> > On 8/27/07, lmk <[EMAIL PROTECTED]> wrote:
> >>
> >> But I'd like to a get  multiple select ..
> >>
> >>
> >>
> >>
> >> Andrew Robinson-5 wrote:
> >> >
> >> > 
> >> >
> >> > On 8/27/07, lmk <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> sorry i talk about combo list ..
> >> >>
> >> >> I'd like to use standard components but i dont have the render that i
> >> >> want..
> >> >>
> >> >> with
> >> >>  i dont get a select box but  thing like text area
> >> >> with
> >> >> values to select..
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> Bruno Aranda wrote:
> >> >> >
> >> >> > Sorry, then I do not know what a "cambo" list is. I was thinking
> >> that
> >> >> > you were refering to a "combo" list, which for me is what the
> >> >> > selectManyMenu does - a drop down list that allows multiple
> >> selection.
> >> >> > Can you explain what a cambo list is?
> >> >> >
> >> >> > Cheers,
> >> >> >
> >> >> > Bruno
> >> >> >
> >> >> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
> >> >> >>
> >> >> >> the standard selectManyMenu render is not like a cambo list..
> >> >> >> see  the render ont the right selectManyMenu, on the left
> >> >> >> selectManyListBox
> >> >> >>
> >> >> >>
> >> >> >> http://www.nabble.com/file/p12350965/debug.jpg
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> Bruno Aranda wrote:
> >> >> >> >
> >> >> >> > What about the standard h:selectManyMenu?
> >> >> >> >
> >> >> >> > Cheers,
> >> >> >> >
> >> >> >> > Bruno
> >> >> >> >
> >> >> >> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
> >> >> >> >>
> >> >> >> >> helloo guys;
> >> >> >> >>
> >> >> >> >> Im struggled to find a useful JSF component that looks like a
> >> cambo
> >> >> >> but
> >> >> >> >> with
> >> >> >> >> a multiple choice possibility; the myfaces or tomawahk
> >> >> >> selectManyListbox
> >> >> >> >> can' be rendered as well as a cambo list..
> >> >> >> >> Im using  myfaces,facelets,rich faces and rcFaces..
> >> >> >> >>
> >> >> >> >> do you have any solution for select many choice on a cambo
> >> list..?
> >> >> >> >>
> >> >> >> >> thanks a lot..
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> View this message in context:
> >> >> >> >>
> >> >> >>
> >> >>
> >> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12345542
> >> >> >> >> Sent from the MyFaces - Users mailing list archive at
> >> Nabble.com.
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12350965
> >> >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12351663
> >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12352009
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12352428
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Re: [Trinidad] Understanding Trinidad Skinning?

2007-08-27 Thread Scott O'Bryan

Andrew,

Could it also be possible that your stylesheet is cached?  Try clearing 
you cache.  This works for me as well.


Scott

Simon Lessard wrote:

Hello Andrew,

It works perfectly fine for me ... What container are you using? Is it 
possible that's a very strange container that isn't greedy at all 
about trimming white space and that you configured your web.xml the 
following way?



  
org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
  
  true


Also, can you check the parameter value from the ExternalContext to 
see if it get configured correctly to true?



Regards,

~ Simon

On 8/27/07, *Andrew Robinson* <[EMAIL PROTECTED] 
> wrote:


yes, I also have the debug-output set to true in my
trinidad-config.xml. But I am still getting the ".x6v" type of CSS
styles with
org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
set to true in the web.xml

FYI, this is version 1.0.2 that I am using

On 8/27/07, Petr Kotek < [EMAIL PROTECTED]
> wrote:
> Hello Andrew,
>
> I am using also
> true
> in trinidad-config.xml
>
> But I am not sure if this is responsible to decrypt css style
names ...
>
> Regards,
> Peter
>
> Simon Lessard wrote:
> > Hello Andrew,
> >
> > Disabling compression does just that... .af_inputText_content
is very
> > readable imho. the underscore after af is always coming from |
while
> > all other underscores were translated from ::, also you can always
> > remove the dot if the generated selector starts with .af_. So,
> > .af_inputText_content comes from af|inputText::content.
> >
> >
> > Regards,
> >
> > ~ Simon
> >
> > On 8/26/07, *Andrew Robinson* <[EMAIL PROTECTED]

> > >> wrote:
> >
> > Disabling the style compression only seems to help a
little bit. The
> > FileSystemStyleCache._getShortStyleClassMap still returns
unreadable
> > styles. For example, one of the selectors firebug showed was:
> >
> > .x6v, .portlet-section-selected, .xbv,
.portlet-table-selected, .xc2 {
> >
> > the .x* styles are really near impossible to know where
they came
> > from.
> >
> > Is there an easy way to get all styles to stay in a
readable state?
> >
> > Thanks,
> > Andrew
> >
> > On 7/30/07, Jeanne Waldman <[EMAIL PROTECTED]

> > mailto:[EMAIL PROTECTED]>>> wrote:
> > > Another tip:
> > >
> > > Use Firebug. It allows you to view the css that is
rendered on a
> > > component by default and then you can inhibit anything
you want
> > in your
> > > skin using -tr-inhibit.
> > >
> > > Also, by default we compress the styleclass names to boost
> > performance.
> > > While creating your skin, you can disable this
compression so
> > that you
> > > can see styleclass names that more closely resemble the css
> > selectors.
> > >
> > > To do this, add to your web.xml file:
> > >
> > > 
> >
>  org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION


> > >  true
> > > 
> > >
> > > And finally, looking at the xss files like Abhijit
suggests will
> > help you as well.
> > >
> > > - Jeanne
> > >
> > >
> > > Abhijit Ghosh wrote:
> > > > Chris,
> > > >
> > > > On 7/28/07, *Chris Hane* <[EMAIL PROTECTED]

> > >
> > > > mailto:[EMAIL PROTECTED]>
 > > >
> > > >
> > > > We are trying to create our own custom skin for
Trinidad and I
> > > > have a basic
> > > > question:
> > > >
> > > > First, where do the defaults for a paticular
element come
> > from?  For
> > > > example, we are trying to skin
> > "af:column::header-text".  When we
> > > > remove
> > > > the color element, a default of #669966 is put
into the
> > > > transformed skin.
> > > >
> > > >
> > > > The defaults are defined in base-desktop.xss and
> > > > simple-desktop.xss.AFAIK your custom skin CSS is
overlaid over the
> > > > styles defined in base-desktop.xss and
simple-desktop.xss.If you
> > > > specify a style in your custom skin CSS it will
override the
> > default
> > > > styles.The XSS files are actually XML files so you can
 

Re: cambo list with multiple choice

2007-08-27 Thread lmk


ok but i have a long list, and it's not eazy to  have all choices..i thinks
that it exists a select box like   with possibility to
selet many items with the CTRL key..



Andrew Robinson-5 wrote:
> 
> That is what h:selectManyMenu is. What HTML control are you trying to
> produce?
> 
> A select box with multiple selection enabled is just a control with a
> border with one line per option tag, so it looks like a text area.
> 
> On 8/27/07, lmk <[EMAIL PROTECTED]> wrote:
>>
>> But I'd like to a get  multiple select ..
>>
>>
>>
>>
>> Andrew Robinson-5 wrote:
>> >
>> > 
>> >
>> > On 8/27/07, lmk <[EMAIL PROTECTED]> wrote:
>> >>
>> >> sorry i talk about combo list ..
>> >>
>> >> I'd like to use standard components but i dont have the render that i
>> >> want..
>> >>
>> >> with
>> >>  i dont get a select box but  thing like text area
>> >> with
>> >> values to select..
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> Bruno Aranda wrote:
>> >> >
>> >> > Sorry, then I do not know what a "cambo" list is. I was thinking
>> that
>> >> > you were refering to a "combo" list, which for me is what the
>> >> > selectManyMenu does - a drop down list that allows multiple
>> selection.
>> >> > Can you explain what a cambo list is?
>> >> >
>> >> > Cheers,
>> >> >
>> >> > Bruno
>> >> >
>> >> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> the standard selectManyMenu render is not like a cambo list..
>> >> >> see  the render ont the right selectManyMenu, on the left
>> >> >> selectManyListBox
>> >> >>
>> >> >>
>> >> >> http://www.nabble.com/file/p12350965/debug.jpg
>> >> >>
>> >> >>
>> >> >>
>> >> >> Bruno Aranda wrote:
>> >> >> >
>> >> >> > What about the standard h:selectManyMenu?
>> >> >> >
>> >> >> > Cheers,
>> >> >> >
>> >> >> > Bruno
>> >> >> >
>> >> >> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
>> >> >> >>
>> >> >> >> helloo guys;
>> >> >> >>
>> >> >> >> Im struggled to find a useful JSF component that looks like a
>> cambo
>> >> >> but
>> >> >> >> with
>> >> >> >> a multiple choice possibility; the myfaces or tomawahk
>> >> >> selectManyListbox
>> >> >> >> can' be rendered as well as a cambo list..
>> >> >> >> Im using  myfaces,facelets,rich faces and rcFaces..
>> >> >> >>
>> >> >> >> do you have any solution for select many choice on a cambo
>> list..?
>> >> >> >>
>> >> >> >> thanks a lot..
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >> View this message in context:
>> >> >> >>
>> >> >>
>> >>
>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12345542
>> >> >> >> Sent from the MyFaces - Users mailing list archive at
>> Nabble.com.
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12350965
>> >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12351663
>> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12352009
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12352428
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] Understanding Trinidad Skinning?

2007-08-27 Thread Andrew Robinson
Yes, I stepped through the code and saw that it checked the parameter
fine. The thing is that it is checked in SkinImpl.java but it doesn't
seem to have had any affect on
FileSystemStyleCache._getShortStyleClassMap which is what is creating
the ".x*" type of class names.

With that said, some class names are readable, like ".OraLink:link"
but other ones are not.

My environment:

MyFaces 1.1.5
Tomahawk & sandbox 1.1.7-SNAPSHOT
Facelets 1.1.11
JBoss Seam 1.2.1
Trinidad 1.0.2

On 8/27/07, Simon Lessard <[EMAIL PROTECTED]> wrote:
> Hello Andrew,
>
> It works perfectly fine for me ... What container are you using? Is it
> possible that's a very strange container that isn't greedy at all about
> trimming white space and that you configured your web.xml the following way?
>
> 
>   
>
> org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
>
>   true
> 
>
> Also, can you check the parameter value from the ExternalContext to see if
> it get configured correctly to true?
>
>
> Regards,
>
> ~ Simon
>
>
> On 8/27/07, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> > yes, I also have the debug-output set to true in my
> > trinidad-config.xml. But I am still getting the ".x6v" type of CSS
> > styles with
> org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
> > set to true in the web.xml
> >
> > FYI, this is version 1.0.2 that I am using
> >
> > On 8/27/07, Petr Kotek < [EMAIL PROTECTED]> wrote:
> > > Hello Andrew,
> > >
> > > I am using also
> > > true
> > > in trinidad-config.xml
> > >
> > > But I am not sure if this is responsible to decrypt css style names ...
> > >
> > > Regards,
> > > Peter
> > >
> > > Simon Lessard wrote:
> > > > Hello Andrew,
> > > >
> > > > Disabling compression does just that... .af_inputText_content is very
> > > > readable imho. the underscore after af is always coming from | while
> > > > all other underscores were translated from ::, also you can always
> > > > remove the dot if the generated selector starts with .af_. So,
> > > > .af_inputText_content comes from af|inputText::content.
> > > >
> > > >
> > > > Regards,
> > > >
> > > > ~ Simon
> > > >
> > > > On 8/26/07, *Andrew Robinson* <[EMAIL PROTECTED]
> > > > > wrote:
> > > >
> > > > Disabling the style compression only seems to help a little bit.
> The
> > > > FileSystemStyleCache._getShortStyleClassMap still
> returns unreadable
> > > > styles. For example, one of the selectors firebug showed was:
> > > >
> > > > .x6v, .portlet-section-selected, .xbv, .portlet-table-selected,
> .xc2 {
> > > >
> > > > the .x* styles are really near impossible to know where they came
> > > > from.
> > > >
> > > > Is there an easy way to get all styles to stay in a readable
> state?
> > > >
> > > > Thanks,
> > > > Andrew
> > > >
> > > > On 7/30/07, Jeanne Waldman <[EMAIL PROTECTED]
> > > > > wrote:
> > > > > Another tip:
> > > > >
> > > > > Use Firebug. It allows you to view the css that is rendered on a
> > > > > component by default and then you can inhibit anything you want
> > > > in your
> > > > > skin using -tr-inhibit.
> > > > >
> > > > > Also, by default we compress the styleclass names to boost
> > > > performance.
> > > > > While creating your skin, you can disable this compression so
> > > > that you
> > > > > can see styleclass names that more closely resemble the css
> > > > selectors.
> > > > >
> > > > > To do this, add to your web.xml file:
> > > > >
> > > > > 
> > > > >
> org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
> 
> > > > >  true
> > > > > 
> > > > >
> > > > > And finally, looking at the xss files like Abhijit suggests will
> > > > help you as well.
> > > > >
> > > > > - Jeanne
> > > > >
> > > > >
> > > > > Abhijit Ghosh wrote:
> > > > > > Chris,
> > > > > >
> > > > > > On 7/28/07, *Chris Hane* <[EMAIL PROTECTED]
> > > > 
> > > > > > mailto:[EMAIL PROTECTED]>>> wrote:
> > > > > >
> > > > > >
> > > > > > We are trying to create our own custom skin for Trinidad
> and I
> > > > > > have a basic
> > > > > > question:
> > > > > >
> > > > > > First, where do the defaults for a paticular element come
> > > > from?  For
> > > > > > example, we are trying to skin
> > > > "af:column::header-text".  When we
> > > > > > remove
> > > > > > the color element, a default of #669966 is put into the
> > > > > > transformed skin.
> > > > > >
> > > > > >
> > > > > > The defaults are defined in base-desktop.xss and
> > > > > > simple-desktop.xss.AFAIK your custom skin CSS is overlaid over
> the
> > > > > > styles defined in base-desktop.xss and simple-desktop.xss.If
> you
> > > > > > specify a style in your custom skin CSS it will override the
> > > > default
> > > > > > st

Re: [Trinidad] Understanding Trinidad Skinning?

2007-08-27 Thread Simon Lessard
Hello Andrew,

It works perfectly fine for me ... What container are you using? Is it
possible that's a very strange container that isn't greedy at all about
trimming white space and that you configured your web.xml the following way?


  
org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
  
  true


Also, can you check the parameter value from the ExternalContext to see if
it get configured correctly to true?


Regards,

~ Simon

On 8/27/07, Andrew Robinson <[EMAIL PROTECTED]> wrote:
>
> yes, I also have the debug-output set to true in my
> trinidad-config.xml. But I am still getting the ".x6v" type of CSS
> styles with
> org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
> set to true in the web.xml
>
> FYI, this is version 1.0.2 that I am using
>
> On 8/27/07, Petr Kotek <[EMAIL PROTECTED]> wrote:
> > Hello Andrew,
> >
> > I am using also
> > true
> > in trinidad-config.xml
> >
> > But I am not sure if this is responsible to decrypt css style names ...
> >
> > Regards,
> > Peter
> >
> > Simon Lessard wrote:
> > > Hello Andrew,
> > >
> > > Disabling compression does just that... .af_inputText_content is very
> > > readable imho. the underscore after af is always coming from | while
> > > all other underscores were translated from ::, also you can always
> > > remove the dot if the generated selector starts with .af_. So,
> > > .af_inputText_content comes from af|inputText::content.
> > >
> > >
> > > Regards,
> > >
> > > ~ Simon
> > >
> > > On 8/26/07, *Andrew Robinson* <[EMAIL PROTECTED]
> > > > wrote:
> > >
> > > Disabling the style compression only seems to help a little bit.
> The
> > > FileSystemStyleCache._getShortStyleClassMap still returns
> unreadable
> > > styles. For example, one of the selectors firebug showed was:
> > >
> > > .x6v, .portlet-section-selected, .xbv, .portlet-table-selected,
> .xc2 {
> > >
> > > the .x* styles are really near impossible to know where they came
> > > from.
> > >
> > > Is there an easy way to get all styles to stay in a readable
> state?
> > >
> > > Thanks,
> > > Andrew
> > >
> > > On 7/30/07, Jeanne Waldman <[EMAIL PROTECTED]
> > > > wrote:
> > > > Another tip:
> > > >
> > > > Use Firebug. It allows you to view the css that is rendered on a
> > > > component by default and then you can inhibit anything you want
> > > in your
> > > > skin using -tr-inhibit.
> > > >
> > > > Also, by default we compress the styleclass names to boost
> > > performance.
> > > > While creating your skin, you can disable this compression so
> > > that you
> > > > can see styleclass names that more closely resemble the css
> > > selectors.
> > > >
> > > > To do this, add to your web.xml file:
> > > >
> > > > 
> > > >  
> org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
> 
> > > >  true
> > > > 
> > > >
> > > > And finally, looking at the xss files like Abhijit suggests will
> > > help you as well.
> > > >
> > > > - Jeanne
> > > >
> > > >
> > > > Abhijit Ghosh wrote:
> > > > > Chris,
> > > > >
> > > > > On 7/28/07, *Chris Hane* <[EMAIL PROTECTED]
> > > 
> > > > > >> wrote:
> > > > >
> > > > >
> > > > > We are trying to create our own custom skin for Trinidad
> and I
> > > > > have a basic
> > > > > question:
> > > > >
> > > > > First, where do the defaults for a paticular element come
> > > from?  For
> > > > > example, we are trying to skin
> > > "af:column::header-text".  When we
> > > > > remove
> > > > > the color element, a default of #669966 is put into the
> > > > > transformed skin.
> > > > >
> > > > >
> > > > > The defaults are defined in base-desktop.xss and
> > > > > simple-desktop.xss.AFAIK your custom skin CSS is overlaid over
> the
> > > > > styles defined in base-desktop.xss and simple-desktop.xss.Ifyou
> > > > > specify a style in your custom skin CSS it will override the
> > > default
> > > > > styles.The XSS files are actually XML files so you can read
> > > them if
> > > > > you want to find out the default values.
> > > > >
> > > > > Thanks,
> > > > > Abhi
> > > > >
> > > > > I found the skin selector documentation, is the another
> doc
> > > > > describing how
> > > > > skins works and their default values?  I have css people
> > > working on
> > > > > defining the skin and they are having a slow time trying
> > > to figure
> > > > > this out.
> > > > >
> > > > > Second, the skin selector documentation states that it is
> not
> > > > > up-to-date.
> > > > > Where can I find updated info - source code only?
> > 

Re: cambo list with multiple choice

2007-08-27 Thread Andrew Robinson
That is what h:selectManyMenu is. What HTML control are you trying to produce?

A select box with multiple selection enabled is just a control with a
border with one line per option tag, so it looks like a text area.

On 8/27/07, lmk <[EMAIL PROTECTED]> wrote:
>
> But I'd like to a get  multiple select ..
>
>
>
>
> Andrew Robinson-5 wrote:
> >
> > 
> >
> > On 8/27/07, lmk <[EMAIL PROTECTED]> wrote:
> >>
> >> sorry i talk about combo list ..
> >>
> >> I'd like to use standard components but i dont have the render that i
> >> want..
> >>
> >> with
> >>  i dont get a select box but  thing like text area
> >> with
> >> values to select..
> >>
> >>
> >>
> >>
> >>
> >>
> >> Bruno Aranda wrote:
> >> >
> >> > Sorry, then I do not know what a "cambo" list is. I was thinking that
> >> > you were refering to a "combo" list, which for me is what the
> >> > selectManyMenu does - a drop down list that allows multiple selection.
> >> > Can you explain what a cambo list is?
> >> >
> >> > Cheers,
> >> >
> >> > Bruno
> >> >
> >> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> the standard selectManyMenu render is not like a cambo list..
> >> >> see  the render ont the right selectManyMenu, on the left
> >> >> selectManyListBox
> >> >>
> >> >>
> >> >> http://www.nabble.com/file/p12350965/debug.jpg
> >> >>
> >> >>
> >> >>
> >> >> Bruno Aranda wrote:
> >> >> >
> >> >> > What about the standard h:selectManyMenu?
> >> >> >
> >> >> > Cheers,
> >> >> >
> >> >> > Bruno
> >> >> >
> >> >> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
> >> >> >>
> >> >> >> helloo guys;
> >> >> >>
> >> >> >> Im struggled to find a useful JSF component that looks like a cambo
> >> >> but
> >> >> >> with
> >> >> >> a multiple choice possibility; the myfaces or tomawahk
> >> >> selectManyListbox
> >> >> >> can' be rendered as well as a cambo list..
> >> >> >> Im using  myfaces,facelets,rich faces and rcFaces..
> >> >> >>
> >> >> >> do you have any solution for select many choice on a cambo list..?
> >> >> >>
> >> >> >> thanks a lot..
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12345542
> >> >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12350965
> >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12351663
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12352009
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Re: cambo list with multiple choice

2007-08-27 Thread lmk

But I'd like to a get  multiple select ..




Andrew Robinson-5 wrote:
> 
> 
> 
> On 8/27/07, lmk <[EMAIL PROTECTED]> wrote:
>>
>> sorry i talk about combo list ..
>>
>> I'd like to use standard components but i dont have the render that i
>> want..
>>
>> with
>>  i dont get a select box but  thing like text area
>> with
>> values to select..
>>
>>
>>
>>
>>
>>
>> Bruno Aranda wrote:
>> >
>> > Sorry, then I do not know what a "cambo" list is. I was thinking that
>> > you were refering to a "combo" list, which for me is what the
>> > selectManyMenu does - a drop down list that allows multiple selection.
>> > Can you explain what a cambo list is?
>> >
>> > Cheers,
>> >
>> > Bruno
>> >
>> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
>> >>
>> >> the standard selectManyMenu render is not like a cambo list..
>> >> see  the render ont the right selectManyMenu, on the left
>> >> selectManyListBox
>> >>
>> >>
>> >> http://www.nabble.com/file/p12350965/debug.jpg
>> >>
>> >>
>> >>
>> >> Bruno Aranda wrote:
>> >> >
>> >> > What about the standard h:selectManyMenu?
>> >> >
>> >> > Cheers,
>> >> >
>> >> > Bruno
>> >> >
>> >> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> helloo guys;
>> >> >>
>> >> >> Im struggled to find a useful JSF component that looks like a cambo
>> >> but
>> >> >> with
>> >> >> a multiple choice possibility; the myfaces or tomawahk
>> >> selectManyListbox
>> >> >> can' be rendered as well as a cambo list..
>> >> >> Im using  myfaces,facelets,rich faces and rcFaces..
>> >> >>
>> >> >> do you have any solution for select many choice on a cambo list..?
>> >> >>
>> >> >> thanks a lot..
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12345542
>> >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12350965
>> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12351663
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12352009
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: cambo list with multiple choice

2007-08-27 Thread Andrew Robinson


On 8/27/07, lmk <[EMAIL PROTECTED]> wrote:
>
> sorry i talk about combo list ..
>
> I'd like to use standard components but i dont have the render that i want..
>
> with
>  i dont get a select box but  thing like text area with
> values to select..
>
>
>
>
>
>
> Bruno Aranda wrote:
> >
> > Sorry, then I do not know what a "cambo" list is. I was thinking that
> > you were refering to a "combo" list, which for me is what the
> > selectManyMenu does - a drop down list that allows multiple selection.
> > Can you explain what a cambo list is?
> >
> > Cheers,
> >
> > Bruno
> >
> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
> >>
> >> the standard selectManyMenu render is not like a cambo list..
> >> see  the render ont the right selectManyMenu, on the left
> >> selectManyListBox
> >>
> >>
> >> http://www.nabble.com/file/p12350965/debug.jpg
> >>
> >>
> >>
> >> Bruno Aranda wrote:
> >> >
> >> > What about the standard h:selectManyMenu?
> >> >
> >> > Cheers,
> >> >
> >> > Bruno
> >> >
> >> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> helloo guys;
> >> >>
> >> >> Im struggled to find a useful JSF component that looks like a cambo
> >> but
> >> >> with
> >> >> a multiple choice possibility; the myfaces or tomawahk
> >> selectManyListbox
> >> >> can' be rendered as well as a cambo list..
> >> >> Im using  myfaces,facelets,rich faces and rcFaces..
> >> >>
> >> >> do you have any solution for select many choice on a cambo list..?
> >> >>
> >> >> thanks a lot..
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12345542
> >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12350965
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12351663
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Re: cambo list with multiple choice

2007-08-27 Thread lmk

sorry i talk about combo list ..

I'd like to use standard components but i dont have the render that i want..

with 
 i dont get a select box but  thing like text area with
values to select..






Bruno Aranda wrote:
> 
> Sorry, then I do not know what a "cambo" list is. I was thinking that
> you were refering to a "combo" list, which for me is what the
> selectManyMenu does - a drop down list that allows multiple selection.
> Can you explain what a cambo list is?
> 
> Cheers,
> 
> Bruno
> 
> On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
>>
>> the standard selectManyMenu render is not like a cambo list..
>> see  the render ont the right selectManyMenu, on the left
>> selectManyListBox
>>
>>
>> http://www.nabble.com/file/p12350965/debug.jpg
>>
>>
>>
>> Bruno Aranda wrote:
>> >
>> > What about the standard h:selectManyMenu?
>> >
>> > Cheers,
>> >
>> > Bruno
>> >
>> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
>> >>
>> >> helloo guys;
>> >>
>> >> Im struggled to find a useful JSF component that looks like a cambo
>> but
>> >> with
>> >> a multiple choice possibility; the myfaces or tomawahk
>> selectManyListbox
>> >> can' be rendered as well as a cambo list..
>> >> Im using  myfaces,facelets,rich faces and rcFaces..
>> >>
>> >> do you have any solution for select many choice on a cambo list..?
>> >>
>> >> thanks a lot..
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12345542
>> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12350965
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12351663
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] Understanding Trinidad Skinning?

2007-08-27 Thread Andrew Robinson
As I mentioned, disabling the compression did not work. As you can see
from my post, I am getting CSS styles like .x6v.

On 8/27/07, Simon Lessard <[EMAIL PROTECTED]> wrote:
> Hello Andrew,
>
> Disabling compression does just that... .af_inputText_content is very
> readable imho. the underscore after af is always coming from | while all
> other underscores were translated from ::, also you can always remove the
> dot if the generated selector starts with .af_. So, .af_inputText_content
> comes from af|inputText::content.
>
>
> Regards,
>
> ~ Simon
>
>
> On 8/26/07, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> > Disabling the style compression only seems to help a little bit. The
> > FileSystemStyleCache._getShortStyleClassMap still returns
> unreadable
> > styles. For example, one of the selectors firebug showed was:
> >
> > .x6v, .portlet-section-selected, .xbv, .portlet-table-selected, .xc2 {
> >
> > the .x* styles are really near impossible to know where they came from.
> >
> > Is there an easy way to get all styles to stay in a readable state?
> >
> > Thanks,
> > Andrew
> >
> > On 7/30/07, Jeanne Waldman <[EMAIL PROTECTED]> wrote:
> > > Another tip:
> > >
> > > Use Firebug. It allows you to view the css that is rendered on a
> > > component by default and then you can inhibit anything you want in your
> > > skin using -tr-inhibit.
> > >
> > > Also, by default we compress the styleclass names to boost performance.
> > > While creating your skin, you can disable this compression so that you
> > > can see styleclass names that more closely resemble the css selectors.
> > >
> > > To do this, add to your web.xml file:
> > >
> > > 
> > >
> org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
> > >  true
> > > 
> > >
> > > And finally, looking at the xss files like Abhijit suggests will help
> you as well.
> > >
> > > - Jeanne
> > >
> > >
> > > Abhijit Ghosh wrote:
> > > > Chris,
> > > >
> > > > On 7/28/07, *Chris Hane* <[EMAIL PROTECTED]
> > > > > wrote:
> > > >
> > > >
> > > > We are trying to create our own custom skin for Trinidad and I
> > > > have a basic
> > > > question:
> > > >
> > > > First, where do the defaults for a paticular element come from?
> For
> > > > example, we are trying to skin "af:column::header-text".  When we
> > > > remove
> > > > the color element, a default of #669966 is put into the
> > > > transformed skin.
> > > >
> > > >
> > > > The defaults are defined in base-desktop.xss and
> > > > simple-desktop.xss.AFAIK your custom skin CSS is overlaid over the
> > > > styles defined in base-desktop.xss and simple-desktop.xss.If you
> > > > specify a style in your custom skin CSS it will override the default
> > > > styles.The XSS files are actually XML files so you can read them if
> > > > you want to find out the default values.
> > > >
> > > > Thanks,
> > > > Abhi
> > > >
> > > > I found the skin selector documentation, is the another doc
> > > > describing how
> > > > skins works and their default values?  I have css people working
> on
> > > > defining the skin and they are having a slow time trying to figure
> > > > this out.
> > > >
> > > > Second, the skin selector documentation states that it is not
> > > > up-to-date.
> > > > Where can I find updated info - source code only?
> > > >
> > > > Thanks,
> > > > Chris
> > > >
> > > >
> > >
> >
>
>


Re: cambo list with multiple choice

2007-08-27 Thread Bruno Aranda
Sorry, then I do not know what a "cambo" list is. I was thinking that
you were refering to a "combo" list, which for me is what the
selectManyMenu does - a drop down list that allows multiple selection.
Can you explain what a cambo list is?

Cheers,

Bruno

On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
>
> the standard selectManyMenu render is not like a cambo list..
> see  the render ont the right selectManyMenu, on the left selectManyListBox
>
>
> http://www.nabble.com/file/p12350965/debug.jpg
>
>
>
> Bruno Aranda wrote:
> >
> > What about the standard h:selectManyMenu?
> >
> > Cheers,
> >
> > Bruno
> >
> > On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
> >>
> >> helloo guys;
> >>
> >> Im struggled to find a useful JSF component that looks like a cambo but
> >> with
> >> a multiple choice possibility; the myfaces or tomawahk selectManyListbox
> >> can' be rendered as well as a cambo list..
> >> Im using  myfaces,facelets,rich faces and rcFaces..
> >>
> >> do you have any solution for select many choice on a cambo list..?
> >>
> >> thanks a lot..
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12345542
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12350965
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Re: [Trinidad] Understanding Trinidad Skinning?

2007-08-27 Thread Andrew Robinson
yes, I also have the debug-output set to true in my
trinidad-config.xml. But I am still getting the ".x6v" type of CSS
styles with org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
set to true in the web.xml

FYI, this is version 1.0.2 that I am using

On 8/27/07, Petr Kotek <[EMAIL PROTECTED]> wrote:
> Hello Andrew,
>
> I am using also
> true
> in trinidad-config.xml
>
> But I am not sure if this is responsible to decrypt css style names ...
>
> Regards,
> Peter
>
> Simon Lessard wrote:
> > Hello Andrew,
> >
> > Disabling compression does just that... .af_inputText_content is very
> > readable imho. the underscore after af is always coming from | while
> > all other underscores were translated from ::, also you can always
> > remove the dot if the generated selector starts with .af_. So,
> > .af_inputText_content comes from af|inputText::content.
> >
> >
> > Regards,
> >
> > ~ Simon
> >
> > On 8/26/07, *Andrew Robinson* <[EMAIL PROTECTED]
> > > wrote:
> >
> > Disabling the style compression only seems to help a little bit. The
> > FileSystemStyleCache._getShortStyleClassMap still returns unreadable
> > styles. For example, one of the selectors firebug showed was:
> >
> > .x6v, .portlet-section-selected, .xbv, .portlet-table-selected, .xc2 {
> >
> > the .x* styles are really near impossible to know where they came
> > from.
> >
> > Is there an easy way to get all styles to stay in a readable state?
> >
> > Thanks,
> > Andrew
> >
> > On 7/30/07, Jeanne Waldman <[EMAIL PROTECTED]
> > > wrote:
> > > Another tip:
> > >
> > > Use Firebug. It allows you to view the css that is rendered on a
> > > component by default and then you can inhibit anything you want
> > in your
> > > skin using -tr-inhibit.
> > >
> > > Also, by default we compress the styleclass names to boost
> > performance.
> > > While creating your skin, you can disable this compression so
> > that you
> > > can see styleclass names that more closely resemble the css
> > selectors.
> > >
> > > To do this, add to your web.xml file:
> > >
> > > 
> > >  
> > org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
> > >  true
> > > 
> > >
> > > And finally, looking at the xss files like Abhijit suggests will
> > help you as well.
> > >
> > > - Jeanne
> > >
> > >
> > > Abhijit Ghosh wrote:
> > > > Chris,
> > > >
> > > > On 7/28/07, *Chris Hane* <[EMAIL PROTECTED]
> > 
> > > > >> wrote:
> > > >
> > > >
> > > > We are trying to create our own custom skin for Trinidad and I
> > > > have a basic
> > > > question:
> > > >
> > > > First, where do the defaults for a paticular element come
> > from?  For
> > > > example, we are trying to skin
> > "af:column::header-text".  When we
> > > > remove
> > > > the color element, a default of #669966 is put into the
> > > > transformed skin.
> > > >
> > > >
> > > > The defaults are defined in base-desktop.xss and
> > > > simple-desktop.xss.AFAIK your custom skin CSS is overlaid over the
> > > > styles defined in base-desktop.xss and simple-desktop.xss.If you
> > > > specify a style in your custom skin CSS it will override the
> > default
> > > > styles.The XSS files are actually XML files so you can read
> > them if
> > > > you want to find out the default values.
> > > >
> > > > Thanks,
> > > > Abhi
> > > >
> > > > I found the skin selector documentation, is the another doc
> > > > describing how
> > > > skins works and their default values?  I have css people
> > working on
> > > > defining the skin and they are having a slow time trying
> > to figure
> > > > this out.
> > > >
> > > > Second, the skin selector documentation states that it is not
> > > > up-to-date.
> > > > Where can I find updated info - source code only?
> > > >
> > > > Thanks,
> > > > Chris
> > > >
> > > >
> > >
> >
> >
>


Re: Integrate AjaxAnywhere with Trinidad Poll

2007-08-27 Thread Andrew Robinson
Why use AA with Trinidad. AA doesn't give you any functionality that
Trinidad already has. My suggestion is to definitely stop using AA.

On 8/26/07, pdt_p <[EMAIL PROTECTED]> wrote:
>
> Hi guys,
>
> I just wonder is there anyone has successfully integrate AjaxAnywhere with
> Trinidad poll element?
> I have tried to integrate it and the result, the poll listener will only be
> executed once. It happen only after the page is rendered and after that the
> poll listener never get executed anymore unless I refresh my page.
> In this page I have substitute the form submit to ajaxanywhere form submit
> through this script:
> ajaxAnywhere.formName = "testForm";
> ajaxAnywhere.bindById();
> ajaxAnywhere.substituteFormSubmitFunction();
>
>
> Second question, When I paly around with AA seems like Trinidad PartialPage
> is not working. I may get wrong here. Any suggestion or information about
> this issue?
>
> Thanks
>
> Pdt
>
>
> --
> View this message in context: 
> http://www.nabble.com/Integrate-AjaxAnywhere-with-Trinidad-Poll-tf416.html#a12341525
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Re: cambo list with multiple choice

2007-08-27 Thread lmk

the standard selectManyMenu render is not like a cambo list..
see  the render ont the right selectManyMenu, on the left selectManyListBox


http://www.nabble.com/file/p12350965/debug.jpg 



Bruno Aranda wrote:
> 
> What about the standard h:selectManyMenu?
> 
> Cheers,
> 
> Bruno
> 
> On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
>>
>> helloo guys;
>>
>> Im struggled to find a useful JSF component that looks like a cambo but
>> with
>> a multiple choice possibility; the myfaces or tomawahk selectManyListbox
>> can' be rendered as well as a cambo list..
>> Im using  myfaces,facelets,rich faces and rcFaces..
>>
>> do you have any solution for select many choice on a cambo list..?
>>
>> thanks a lot..
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12345542
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12350965
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: ForceId=true not working continuously on one page

2007-08-27 Thread David Delbecq

Umar Zubair a écrit :


Even forceid=true is not working for each second click.

I just did following change in forceId.jsp page included in 
myfaces-example-simple-1.1.6. But it is not working


var="choice" id="testId" forceId="true">








 

 


I am using tomcat 5.5.

 


Any idea?

 


Regards,

Umar Zubair

 

What id do you get in generated page instead of "testId"? What do you 
except it to be? What do you mean by "not working for each second click"?


Re: cambo list with multiple choice

2007-08-27 Thread Bruno Aranda
What about the standard h:selectManyMenu?

Cheers,

Bruno

On 27/08/07, lmk <[EMAIL PROTECTED]> wrote:
>
> helloo guys;
>
> Im struggled to find a useful JSF component that looks like a cambo but with
> a multiple choice possibility; the myfaces or tomawahk selectManyListbox
> can' be rendered as well as a cambo list..
> Im using  myfaces,facelets,rich faces and rcFaces..
>
> do you have any solution for select many choice on a cambo list..?
>
> thanks a lot..
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12345542
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Re: Link to a new site

2007-08-27 Thread Bruno Aranda
Welcome Wolfgang,

One of the features of the tree2 model is that you can extend its
model objects to accommodate the tree to your needs. For example, you
can have a specific extension of TreeNodeBase that contains an action
method for navigation:

public class TreeNodeNavigation extends TreeNodeBase {

private String action;

public TreeNodeNavigation(String type, String description, boolean
leaf, String action) {
super(type, description, leaf);

this.action = action;
}

public String navigate() {
return action;
}
}

As you can see, this kind of node contains an "action" method called
navigate() which returns the String for the action to be invoked.

For instance, you could create your tree in your backing bean using
code like this:

public class MyDemo {

private TreeModelBase treeModel;

public MyDemo(){
TreeNodeBase root = new TreeNodeBase("simpleNode", "test", false);
TreeNodeNavigation node= new TreeNodeNavigation("navNode",
"node1", true, "statistics");
root.getChildren().add(node);

treeModel = new TreeModelBase(root);
}

public TreeModelBase getTreeModel() {
return treeModel;
}

public void setTreeModel(TreeModelBase treeModel) {
this.treeModel = treeModel;
}
}

As you can see in the previous snippet. One of the nodes is an
instance of TreeNodeNavigation and as an example I am passing the
action string "statistics", which you need to have configured in your
navigation-rules:


...
 
demo
mycompany.MyDemo
session




statistics
/statistics.xhtml





So, whenver an action returns "statistics", it will navigate to the
statistics.xhtml view.

Finally, to use such a tree in your page, you could have something like this:

 

 








Where we have defined two kinds of node: simpleNode and navNode. The
latter uses the action from our node extended class.

Hope it helps!

Cheers ;-)

Bruno

On 24/08/07, Wolfgang <[EMAIL PROTECTED]> wrote:
> Hi to all on this list,
>
> I have just started to learn jsf and I managed to build a  menu with the
> tree2 component of Apache MyFaces.
>
> The menu files are:
> menuEnVision.java (the code can be seen here:
> http://pastebin.parentnode.org/22482)
> menuEnVision.xhtml (http://pastebin.parentnode.org/22483)
>
> What I didn't managed is, if one clicks on a menu point, the content of
> a new page should appear.
> For example: statistics.xhtml or proteins.xhtml
>
> If one clicks on a menu point, I have managed to identify which one it
> was, but how to use this
> for opening the content of a  new site (e.g. statisitcs.xhtml)  I don't
> know .
>
> Can anyone give me a short example how to do this?
>
> Thanks for  your help!
>
> Cheers Wolfgang
>
>
>


ForceId=true not working continuously on one page

2007-08-27 Thread Umar Zubair
Even forceid=true is not working for each second click.

I just did following change in forceId.jsp page included in
myfaces-example-simple-1.1.6. But it is not working









 

 

I am using tomcat 5.5.

 

Any idea?

 

Regards,

Umar Zubair

 



Dynamic tabs in panelTabbedPane

2007-08-27 Thread geirgp

Hi,

Is it possible for the panelTabbedPane to iterate over a java.util.List and
create one tab for each entry in the list?

I tried enclosing the panelTabs in a dataList (see below) but then no tabs
were created and all information from all objects in the list were printed
on the same panel.









-- 
View this message in context: 
http://www.nabble.com/Dynamic-tabs-in-panelTabbedPane-tf4335321.html#a12347048
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] Understanding Trinidad Skinning?

2007-08-27 Thread Petr Kotek

Hello Andrew,

I am using also
true
in trinidad-config.xml

But I am not sure if this is responsible to decrypt css style names ...

Regards,
Peter

Simon Lessard wrote:

Hello Andrew,

Disabling compression does just that... .af_inputText_content is very 
readable imho. the underscore after af is always coming from | while 
all other underscores were translated from ::, also you can always 
remove the dot if the generated selector starts with .af_. So, 
.af_inputText_content comes from af|inputText::content.



Regards,

~ Simon

On 8/26/07, *Andrew Robinson* <[EMAIL PROTECTED] 
> wrote:


Disabling the style compression only seems to help a little bit. The
FileSystemStyleCache._getShortStyleClassMap still returns unreadable
styles. For example, one of the selectors firebug showed was:

.x6v, .portlet-section-selected, .xbv, .portlet-table-selected, .xc2 {

the .x* styles are really near impossible to know where they came
from.

Is there an easy way to get all styles to stay in a readable state?

Thanks,
Andrew

On 7/30/07, Jeanne Waldman <[EMAIL PROTECTED]
> wrote:
> Another tip:
>
> Use Firebug. It allows you to view the css that is rendered on a
> component by default and then you can inhibit anything you want
in your
> skin using -tr-inhibit.
>
> Also, by default we compress the styleclass names to boost
performance.
> While creating your skin, you can disable this compression so
that you
> can see styleclass names that more closely resemble the css
selectors.
>
> To do this, add to your web.xml file:
>
> 
>  
org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
>  true
> 
>
> And finally, looking at the xss files like Abhijit suggests will
help you as well.
>
> - Jeanne
>
>
> Abhijit Ghosh wrote:
> > Chris,
> >
> > On 7/28/07, *Chris Hane* <[EMAIL PROTECTED]

> > >> wrote:
> >
> >
> > We are trying to create our own custom skin for Trinidad and I
> > have a basic
> > question:
> >
> > First, where do the defaults for a paticular element come
from?  For
> > example, we are trying to skin
"af:column::header-text".  When we
> > remove
> > the color element, a default of #669966 is put into the
> > transformed skin.
> >
> >
> > The defaults are defined in base-desktop.xss and
> > simple-desktop.xss.AFAIK your custom skin CSS is overlaid over the
> > styles defined in base-desktop.xss and simple-desktop.xss.If you
> > specify a style in your custom skin CSS it will override the
default
> > styles.The XSS files are actually XML files so you can read
them if
> > you want to find out the default values.
> >
> > Thanks,
> > Abhi
> >
> > I found the skin selector documentation, is the another doc
> > describing how
> > skins works and their default values?  I have css people
working on
> > defining the skin and they are having a slow time trying
to figure
> > this out.
> >
> > Second, the skin selector documentation states that it is not
> > up-to-date.
> > Where can I find updated info - source code only?
> >
> > Thanks,
> > Chris
> >
> >
>




Problem with class loading and forceId for dataList

2007-08-27 Thread Umar Zubair
I have included following jar files in my WEB-INF/lib folder


Jsf-api, jsf-impl, myfaces-api, myfaces-impl and tomawahk.

 

I have a linux box with two tomcat instances using same jdk. Even tomcat
instance version is same. For one tomcat, application is running perfect but
for other instance on server startup I am getting following error for many
renders..

INFO  org.apache.myfaces.renderkit.html.HtmlRenderKitImpl Overwriting
renderer with family = javax.faces.Command rendererType = javax.faces.Button
renderer class = com.sun.faces.renderkit.html_basic.ButtonRenderer

 

First question is why the behaviour is different for same environment?

 

If I remove jsf-api and jsf-impl from lib folder from second instance, then
error messages don't appear but application is not running perfectly on that
second instance. I am using forceId=true frequently in my application
because Id are mapped with css classes. So where ever I used forced=true
application has problems there. 

Especially where ever I use forceId with t:dataList. On first page css is
loaded properly but page is not submitted on first click. On second click
page is submitted but css is not loaded.

 

How can I get rid of these errors?

 

I have used all provided versions of myfaces and tomahawk. But problem still
there for second tomcat instance.

 

 

Regards,

Umar Zubair

 

 

 



Problem with class loading and forceId for dataList

2007-08-27 Thread Umar Zubair
I have included following jar files in my WEB-INF/lib folder


Jsf-api, jsf-impl, myfaces-api, myfaces-impl and tomawahk.

 

I have a linux box with two tomcat instances using same jdk. Even tomcat
instance version is same. For one tomcat, application is running perfect but
for other instance on server startup I am getting following error for many
renders..

INFO  org.apache.myfaces.renderkit.html.HtmlRenderKitImpl Overwriting
renderer with family = javax.faces.Command rendererType = javax.faces.Button
renderer class = com.sun.faces.renderkit.html_basic.ButtonRenderer

 

First question is why the behaviour is different for same environment?

 

If I remove jsf-api and jsf-impl from lib folder from second instance, then
error messages don't appear but application is not running perfectly on that
second instance. I am using forceId=true frequently in my application
because Id are mapped with css classes. So where ever I used forced=true
application has problems there. 

Especially where ever I use forceId with t:dataList. On first page css is
loaded properly but page is not submitted on first click. On second click
page is submitted but css is not loaded.

 

How can I get rid of these errors?

 

I have used all provided versions of myfaces and tomahawk. But problem still
there for second tomcat instance.

 

 

Regards,

Umar Zubair

 

 



users@myfaces.apache.org

2007-08-27 Thread Matthias Imhof
thank for your response.

I want to highlight one of the option in a listbox.
so I have to set the style explicitly to one SelectItem, but the class doesn't 
provide a method for that.
do I have to write my own renderer for that ?

greetings
matze


> Settting the style (styleClass or style attribute) in the parent
> element (e.g. the SelectOneMenu wrapping tehe selectItems) doesn't do
vthe trick?
> -Wolf
> 
> > I would like to set the style of my SelectItems in a HtmlSelectManyListbox.
> > Is there a way to do it ?

___
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=00

BEGIN:VCARD
VERSION:2.1
N:Imhof;Matthias;;;
FN:Matthias Imhof
EMAIL;INTERNET:[EMAIL PROTECTED]
END:VCARD


Re: [Trinidad] Understanding Trinidad Skinning?

2007-08-27 Thread Simon Lessard
Hello Andrew,

Disabling compression does just that... .af_inputText_content is very
readable imho. the underscore after af is always coming from | while all
other underscores were translated from ::, also you can always remove the
dot if the generated selector starts with .af_. So, .af_inputText_content
comes from af|inputText::content.


Regards,

~ Simon

On 8/26/07, Andrew Robinson <[EMAIL PROTECTED]> wrote:
>
> Disabling the style compression only seems to help a little bit. The
> FileSystemStyleCache._getShortStyleClassMap still returns unreadable
> styles. For example, one of the selectors firebug showed was:
>
> .x6v, .portlet-section-selected, .xbv, .portlet-table-selected, .xc2 {
>
> the .x* styles are really near impossible to know where they came from.
>
> Is there an easy way to get all styles to stay in a readable state?
>
> Thanks,
> Andrew
>
> On 7/30/07, Jeanne Waldman <[EMAIL PROTECTED]> wrote:
> > Another tip:
> >
> > Use Firebug. It allows you to view the css that is rendered on a
> > component by default and then you can inhibit anything you want in your
> > skin using -tr-inhibit.
> >
> > Also, by default we compress the styleclass names to boost performance.
> > While creating your skin, you can disable this compression so that you
> > can see styleclass names that more closely resemble the css selectors.
> >
> > To do this, add to your web.xml file:
> >
> > 
> >  
> org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
> 
> >  true
> > 
> >
> > And finally, looking at the xss files like Abhijit suggests will help
> you as well.
> >
> > - Jeanne
> >
> >
> > Abhijit Ghosh wrote:
> > > Chris,
> > >
> > > On 7/28/07, *Chris Hane* <[EMAIL PROTECTED]
> > > > wrote:
> > >
> > >
> > > We are trying to create our own custom skin for Trinidad and I
> > > have a basic
> > > question:
> > >
> > > First, where do the defaults for a paticular element come
> from?  For
> > > example, we are trying to skin "af:column::header-text".  When we
> > > remove
> > > the color element, a default of #669966 is put into the
> > > transformed skin.
> > >
> > >
> > > The defaults are defined in base-desktop.xss and
> > > simple-desktop.xss.AFAIK your custom skin CSS is overlaid over the
> > > styles defined in base-desktop.xss and simple-desktop.xss.If you
> > > specify a style in your custom skin CSS it will override the default
> > > styles.The XSS files are actually XML files so you can read them if
> > > you want to find out the default values.
> > >
> > > Thanks,
> > > Abhi
> > >
> > > I found the skin selector documentation, is the another doc
> > > describing how
> > > skins works and their default values?  I have css people working
> on
> > > defining the skin and they are having a slow time trying to figure
> > > this out.
> > >
> > > Second, the skin selector documentation states that it is not
> > > up-to-date.
> > > Where can I find updated info - source code only?
> > >
> > > Thanks,
> > > Chris
> > >
> > >
> >
>


[Tobago] How to change the order of the columns of a sheet?

2007-08-27 Thread Helmut Swaczinna

Hi,

I want to change the order of the columns of a sheet programmaticly before 
the sheet is rendered the first time.
I can't do this in the setter method for the sheet binding because the 
columns don't exist when the setter for the binding is called the first 
time. I dont't want to generate all columns with it's children in my code.


The order of the columns should be stored in the user preferences for each 
user in the database.


Thanks for any help
Regards
Helmut 



cambo list with multiple choice

2007-08-27 Thread lmk

helloo guys;

Im struggled to find a useful JSF component that looks like a cambo but with
a multiple choice possibility; the myfaces or tomawahk selectManyListbox 
can' be rendered as well as a cambo list..
Im using  myfaces,facelets,rich faces and rcFaces..

do you have any solution for select many choice on a cambo list..?

thanks a lot..



-- 
View this message in context: 
http://www.nabble.com/cambo-list-with-multiple-choice-tf4334822.html#a12345542
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Clustering MyFaces application with Tomcat

2007-08-27 Thread Svilen Ivanov
I'm trying to cluster a certain MyFaces (1.1.5, tomahawk 1.1.6)
application in Tomcat 5.5.20. The applications heavily relies on
session beans which use ListDataModel and HtmlDataScroller as
properties. When I setup Tomcat to replicate sessions I got
NotSerializableException for HtmlDataScroller.

As far as I understood from MyFaces FAQ [2] list data model is not
serializable and may be marked "transient". Some guys recommend to
build new data model out of a list [1] each time data model is
requested. However I couldn't find how to solve the problem with
HtmlDataScroller.

My initial idea is to subclass MyFaces classes I use in the session
beans and make them implement Serializable interface. How does this
sound?

Also I have bindings of input controls (HtmlInputText,
HtmlSelectOneRadio) in these session beans. Are they also stateless as
ListDataModel?

I would really appreciate if you share your experience with clustering
MyFaces application as well or if you point me towards resources on
the Internet that might help

Regards,
Svilen

[1] http://www.mail-archive.com/users@myfaces.apache.org/msg38166.html
[2] http://wiki.apache.org/myfaces/FAQ

-- 
Svilen Ivanov
http://svilen-online.blogspot.com

There is no dark side of the moon really.
Matter of fact it's all dark.


Ajax4jsf and trinidad question...

2007-08-27 Thread Julien Martin
--
Hello,

I am trying to get a4j and trinidad working together. I have not being able
to download the a4j-trinidad.war file due to restriction policies on
downloading (in my company).

I use the following jars:

-a4j 1.1.1
-myfaces 1.1.5
-trinidad 1.0.2
-aj4-trinidad.jar

and I have the following web.xml

 *Code:*


http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

javax.faces.STATE_SAVING_METHOD
server


com.calyonfinancial.protide.SCHEMA
calyonqa


com.calyonfinancial.protide.CORRESPONDANT
Lecuirot Agnes


com.calyonfinancial.protide.DATE_ARRETE
200703


com.calyonfinancial.protide.ENV
T



com.calyonfinancial.protide.outputFilePathAndName
N:\data\Developpement\Developpement Doc\Banque de
France\protide\jm\output\TCC_CF_test.xml


com.calyonfinancial.protide.databaseUrlHeader
jdbc:as400:


com.calyonfinancial.protide.databaseName
AS400D.CALYONFINANCIAL.COM


com.calyonfinancial.protide.databaseUser
jmartin


com.calyonfinancial.protide.databasePassword
martin6


com.calyonfinancial.protide.databaseDriverName
com.ibm.as400.access.AS400JDBCDriver



com.calyonfinancial.protide.PR01

select
POTRFOLIO_TYPE,
HOLDING_TYPE,
HOLDER_INDUSTRY,
HOLDER_AREA,
HOLDER_SOCIAL_ECON_CATEGORY,
HOLDER_AGE,
AMOUNT_RANGE,
INSTRUMENT_TYPE,
MATURITY,
CURRENCY,
ISSUER_AREA,
ISSUER_INDUSTRY,
sum(previous_period_outstanding) as
previous_period_outstanding,
sum(current_period_outstanding) as
current_period_outstanding,
NUMBER_OF_ACCOUNTS
from (
select
POTRFOLIO_TYPE,
HOLDING_TYPE,
HOLDER_INDUSTRY,
HOLDER_AREA,
HOLDER_SOCIAL_ECON_CATEGORY,
HOLDER_AGE,
AMOUNT_RANGE,
INSTRUMENT_TYPE,
MATURITY,
CURRENCY,
ISSUER_AREA,
ISSUER_INDUSTRY,
(case when equity_date = ? then sum(cash_flow) else 0 end)
as previous_period_outstandin
g,
(case when equity_date = ? then sum(cash_flow) else 0 end)
as current_period_outstanding
,
NUMBER_OF_ACCOUNTS
from PROTIDE01P_view
where cash_flow_type = 'XXX' and equity_date between ? and
?
group by
POTRFOLIO_TYPE,
HOLDING_TYPE,
HOLDER_INDUSTRY,
HOLDER_AREA,
HOLDER_SOCIAL_ECON_CATEGORY,
HOLDER_AGE,
AMOUNT_RANGE,
INSTRUMENT_TYPE,
MATURITY,
CURRENCY,
ISSUER_AREA,
ISSUER_INDUSTRY,
NUMBER_OF_ACCOUNTS,
equity_date ) as p
group by
POTRFOLIO_TYPE,
HOLDING_TYPE,
HOLDER_INDUSTRY,
HOLDER_AREA,
HOLDER_SOCIAL_ECON_CATEGORY,
HOLDER_AGE,
AMOUNT_RANGE,
INSTRUMENT_TYPE,
MATURITY,
CURRENCY,
ISSUER_AREA,
ISSUER_INDUSTRY,
NUMBER_OF_ACCOUNTS



com.calyonfinancial.protide.PR02

SELECT
sum(cash_Flow) as sum_cash_flow,
potrfolio_Type,
holding_Type,
holder_Industry,
holder_Area,
instrument_Type,
maturity,
currency,
issuer_Area,
issuer_Industry,
cash_Flow_Type
FROM Protide01p_View
where cash_Flow_Type != 'XXX' and equity_date between ?
and ?
group by  potrfolio_Type,
holding_Type,
holder_Industry,
holder_Area,
instrument_Type,
maturity,
currency,
issuer_Area,
issuer_Industry,
cash_Flow_Type



Protide Application version
com.calyonfinancial.protide.VERSION
beta12


org.apache.myfaces.trinidad.resource.DEBUG
true


Ajax4jsf Filter
ajax4jsf
org.ajax4jsf.Filter

forceparser
false




extensionsFilter

org.apache.myfaces.component.html.util.ExtensionsFilter

uploadMaxFileSize
100m


uploadThresholdSize
800k




Trinidad

org.apache.myfaces.trinidad.webapp.TrinidadFilte

Re: [Trinidad] XMLMenuModel bug

2007-08-27 Thread Luka Surija

Any idea?


Luka Surija wrote:
Actually nothing happens, I've found that Firebug is displaying this 
error message:


validatorArray has no properties:

_multiValidate(form#j_id1 index.xhtml, "j_id5:0:j_id6", ["j_id28", 0, 
undefined, 17 more...])Common1_0_3.js (line 5248)
_validateInline(form#j_id1 index.xhtml, "j_id5:0:j_id6", ["j_id28", 0, 
undefined, 17 more...])Common1_0_3.js (line 4589)
_j_id1Validator(form#j_id1 index.xhtml, "j_id5:0:j_id6")index.xhtml 
(line 245)
_validateForm(form#j_id1 index.xhtml, "j_id5:0:j_id6")Common1_0_3.js 
(line 4508)
submitForm(form#j_id1 index.xhtml, 1, Object source=j_id5:0:j_id6, 
undefined)Common1_0_3.js (line 4765)

onclick(click clientX=0, clientY=0)index.xhtml (line 1)
for(var j=0;j
If found pretty dummy bug in XMLMenuModel.

If I call an action method trough XMLMenuModel then the method is 
executed, but no navigation is executed.



WorkingTaskAdmin:

public String addNewWorkingTask(){
   sessionBean.addNewWorkingTask();
   return "service:workingTaskWizard"; -- invoking in 
tr:commandMenuItem  act as where "return null;"

   }

menu-model.xml:

action="#{WorkingTaskAdmin.addNewWorkingTask}" 
focusViewId="/service/workingTaskWizard.xhtml" />



but if i press this button then everything works as expected.
action="#{WorkingTaskAdmin.addNewWorkingTask}" />



I'm using trinidad 1.0.3-core trunk.