Re: general myfaces performance question

2006-11-16 Thread Martin Marinschek

No, I don't. Time for the example app being ported ;)

regards,

Martin

On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:

do you have numbers for that better than struts ?

On 11/16/06, Martin Marinschek [EMAIL PROTECTED] wrote:
 He should definitely take the Trinidad component set for high
 performance requirements, with this, you're in the same region as
 Struts for performance (probably better - cause if you do it yourself,
 you won't get the same optimized state-saving as is implemented in
 Trinidad).

 regards,

 Martin

 On 11/15/06, Werner Punz [EMAIL PROTECTED] wrote:
  Ok, before anyone is falling down the chair because I ask this question.
  Here we go. A friend of mine is looking for a struts replacement
  framework covering extranet sites.
 
  Well here we go, my experience with jsf in the past is, that it was not
  too suitable for extranet, but is a perfect choice for intranet sites.
  The reason, higher overhead than plain lean frameworks only covering a
  minimalistic approach.
 
  The situation has changed however, facelets give a huge performance
  boost due to good caching.
  But I lack experience, I know several bigger intranet installations,
  but extranet is a fully different beast.
 
  So my question how good does jsf scale nowadays in those cases.
  Does anyone have any experience or samples?
 
 


 --

 http://www.irian.at

 Your JSF powerhouse -
 JSF Consulting, Development and
 Courses in English and German

 Professional Support for Apache MyFaces



--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com




--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


Re: general myfaces performance question

2006-11-16 Thread Matthias Wessendorf

get a student :)

On 11/16/06, Martin Marinschek [EMAIL PROTECTED] wrote:

No, I don't. Time for the example app being ported ;)

regards,

Martin

On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
 do you have numbers for that better than struts ?

 On 11/16/06, Martin Marinschek [EMAIL PROTECTED] wrote:
  He should definitely take the Trinidad component set for high
  performance requirements, with this, you're in the same region as
  Struts for performance (probably better - cause if you do it yourself,
  you won't get the same optimized state-saving as is implemented in
  Trinidad).
 
  regards,
 
  Martin
 
  On 11/15/06, Werner Punz [EMAIL PROTECTED] wrote:
   Ok, before anyone is falling down the chair because I ask this question.
   Here we go. A friend of mine is looking for a struts replacement
   framework covering extranet sites.
  
   Well here we go, my experience with jsf in the past is, that it was not
   too suitable for extranet, but is a perfect choice for intranet sites.
   The reason, higher overhead than plain lean frameworks only covering a
   minimalistic approach.
  
   The situation has changed however, facelets give a huge performance
   boost due to good caching.
   But I lack experience, I know several bigger intranet installations,
   but extranet is a fully different beast.
  
   So my question how good does jsf scale nowadays in those cases.
   Does anyone have any experience or samples?
  
  
 
 
  --
 
  http://www.irian.at
 
  Your JSF powerhouse -
  JSF Consulting, Development and
  Courses in English and German
 
  Professional Support for Apache MyFaces
 


 --
 Matthias Wessendorf
 http://tinyurl.com/fmywh

 further stuff:
 blog: http://jroller.com/page/mwessendorf
 mail: mwessendorf-at-gmail-dot-com



--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces




--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


CommandLinks and CommandButton stop working with t:inputDate

2006-11-16 Thread Aneesha Govil

Hi,

I have a complex form to accept input from the user. I just put t:inputDate
into it. It is inside a dynamically created datatable. If the value of the
t:inputDate is null (no date is present), everything is rendered correctly.
The inputDate component is blank, as expected. However, if I click on any
commandLinks, the page simply refreshes, they are not behaving as
configured.

Also, this does not happen if the inputDate component has a pre-defined
value.

I am using tomahawk 1.1.5 snapshot because of this bug -
http://issues.apache.org/jira/browse/TOMAHAWK-378

I am using myfaces-core-1.1.4 but I have set auto_scroll to false so that it
doesn't break.

Anybody have any idea what's going wrong?

Thanks,
Aneesha


Re: creating a dynamic code for a group of radio buttons

2006-11-16 Thread Aneesha Govil

Hi Yaron,

Can you post the updated code? I think you had missed this step earlier -


selectOneRadio.getChildren().add(radio);


Aneesha

On 11/15/06, Yaron Spektor [EMAIL PROTECTED] wrote:


 Thanks Aneesha,

I did have the IDs unique. I also tried setting the valueBinding to an
HtmlSelectOneRadio that I put on the bean (with getters and setters of
course) nothing seemed to work.

Just to make sure my question is clear I need to create a dynamic view
similar to this:

|*column1|column2**|column3|*

*|radio1|radio 2   |radio3|*

*|radio4|radio5|*  |





The number of columns and number of rows is not fixed and all the radio
buttons need to be in the same group.



Any advice would be appreciated,


 --

*From:* Aneesha Govil [mailto:[EMAIL PROTECTED]
*Sent:* Tuesday, November 14, 2006 4:58 AM
*To:* MyFaces Discussion
*Subject:* Re: creating a dynamic code for a group of radio buttons



Hi,

I haven't constructed radio buttons dynamically but in general, to do
something like this..
HtmlSelectOneRadio selectOneRadio = new HtmlSelectOneRadio();
selectOneRadio.setId(choicesRadioButtons);//TODO: componentID
selectOneRadio.setLayout(spread);
selectOneRadio.setValue(displayValue);

// If you are setting IDs for radio instances here, make sure each is
unique
HtmlRadio radio = new HtmlRadio();
radio.setFor(choicesRadioButtons);
radio.setIndex(0);

selectOneRadio.getChildren ().add(radio);

panelGroup.getChildren().add(selectOneRadio);

Hope that helps!

Aneesha

On 11/14/06, *Yaron Spektor* [EMAIL PROTECTED] wrote:

Hi there,

I would like to convert this code to dynamic components (I can not use
tableData with newspaperColumn because I want multiple columns with the same
button group and I need a header aligned with each such column). I would
like to be able to set the  t:radio in a panelGrid with X number of
 columns:

h:panelGroup

  t:selectOneRadio id=buttons layout=spread forceId=true
forceIdIndex=false value=hello

f:selectItems value=#{pc_Wizard.choicesDisplayValue} /

  /t:selectOneRadio





  h:panelGrid columns=5 



t:radio for=buttons index=0 /

t:radio for=buttons index=1 /

t:radio for=buttons index=2 /

t:radio for=buttons index=3 /

t:radio for=buttons index=4 /

t:radio for=buttons index=5 /

t:radio for=buttons index=6 /

t:radio for=buttons index=7 /

t:radio for=buttons index=8 /

  /h:panelGrid

 /h:panelGroup



This is the code I started writing but I have a problem making it work
especially setting the for

  HtmlPanelGroup panelGroup= new HtmlPanelGroup();

  HtmlPanelGrid htmlPanelGrid = new HtmlPanelGrid();

  List panelGroupChildren = panelGroup.getChildren();

  panelGroupChildren.clear();

  HtmlRadio radio;



  HtmlSelectOneRadio selectOneRadio = new HtmlSelectOneRadio();

  selectOneRadio.setId(choicesRadioButtons);//TODO: componentID

  selectOneRadio.setLayout(spread);

  selectOneRadio.setValue(displayValue);



  htmlPanelGrid.setColumns(5);

  htmlPanelGrid.setColumnClasses(Constants.cColumnClasses+
,+Constants.cColumnClassesCurrency);

  htmlPanelGrid.setRendered(true);



for(int i=0;i9;i++){

  radio = new HtmlRadio();

  radio.setId(selectOneRadio);

  ValueBinding vb =app.createValueBinding(buttons);

  radio.setValueBinding(for, vb);

  radio.setIndex(i);

  htmlPanelGrid.getChildren().add(radio);

}





panelGroupChildren.add(selectOneRadio);

panelGroupChildren.add(htmlPanelGrid);



return panelGroup;



any ideas?











[Tobago] Where do the tobago components get their class attribute from?

2006-11-16 Thread Clemens Schneider

Hi there,
I searched through the source but couldn't find the code, where the
components get their class-attribute(s) and layout-styles set. Can anyone
point me to the right class/method where this is done?
What I need it for is the development of custom components that adopt the
layout-facility and skinning of tobago...
greets  thanks!
clemens


t:dataTable input

2006-11-16 Thread JS

Hi,

I have datatable with rows adding dynamically with inputText. I cannot get
the value entering into input text field. 

Here is my code :


t:dataTable value=#{TSKBean.workQtDetail} var=wkQtDetail
columnClasses=columnStyle border=0 columnClasses=dataColm1,dataColm2
preserveDataModel=false
rowGroupStyle=border-bottom:gold;border-bottom-style:solid;border-bottom-width:2px;vertical-align:top
preserveRowStates=truet:column groupBy=truef:facet
name=headerh:outputText id=dpt value=#{msg.dept}
//f:faceth:outputText id=dept value=#{wkQtDetail.deptSelected}
/h:inputHidden id=dptId
value=#{wkQtDetail.deptId}//t:columnt:columnf:facet
name=headerh:outputText id=workQtDetail value=#{msg.work_qt_detail}
//f:faceth:outputText id=wk value=#{wkQtDetail.work}
/h:inputHidden id=wId
value=#{wkQtDetail.workId}//t:columnt:columnf:facet
name=headerh:outputText id=effort value=#{msg.eft}
//f:faceth:inputText id=qtEffort
value=#{wkQtDetail.qtOfEffort}//t:column/t:dataTable 



I tried putting bean in session scope. But that didn't change .

Please please help me to sort why the input data is not getting. 

Thanks,
~J
-- 
View this message in context: 
http://www.nabble.com/t%3AdataTable-input-tf2641794.html#a7374241
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: general myfaces performance question

2006-11-16 Thread Ulath (AKA: Murat HAZER)

Does trinidad have any incompatibilities with tomahawk components and
facelets?

On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:


get a student :)

On 11/16/06, Martin Marinschek [EMAIL PROTECTED] wrote:
 No, I don't. Time for the example app being ported ;)

 regards,

 Martin

 On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
  do you have numbers for that better than struts ?
 
  On 11/16/06, Martin Marinschek [EMAIL PROTECTED] wrote:
   He should definitely take the Trinidad component set for high
   performance requirements, with this, you're in the same region as
   Struts for performance (probably better - cause if you do it
yourself,
   you won't get the same optimized state-saving as is implemented in
   Trinidad).
  
   regards,
  
   Martin
  
   On 11/15/06, Werner Punz [EMAIL PROTECTED] wrote:
Ok, before anyone is falling down the chair because I ask this
question.
Here we go. A friend of mine is looking for a struts replacement
framework covering extranet sites.
   
Well here we go, my experience with jsf in the past is, that it
was not
too suitable for extranet, but is a perfect choice for intranet
sites.
The reason, higher overhead than plain lean frameworks only
covering a
minimalistic approach.
   
The situation has changed however, facelets give a huge
performance
boost due to good caching.
But I lack experience, I know several bigger intranet
installations,
but extranet is a fully different beast.
   
So my question how good does jsf scale nowadays in those cases.
Does anyone have any experience or samples?
   
   
  
  
   --
  
   http://www.irian.at
  
   Your JSF powerhouse -
   JSF Consulting, Development and
   Courses in English and German
  
   Professional Support for Apache MyFaces
  
 
 
  --
  Matthias Wessendorf
  http://tinyurl.com/fmywh
 
  further stuff:
  blog: http://jroller.com/page/mwessendorf
  mail: mwessendorf-at-gmail-dot-com
 


 --

 http://www.irian.at

 Your JSF powerhouse -
 JSF Consulting, Development and
 Courses in English and German

 Professional Support for Apache MyFaces



--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com





--
Murat HAZER
http://www.projedunyasi.org


Re: t:inputDate display seconds

2006-11-16 Thread Aneesha Govil

Figured this, using type=full.

Aneesha

On 11/16/06, Aneesha Govil [EMAIL PROTECTED] wrote:


Hi,

I would like to display seconds as well in the t:inputDate component.
Right now, it just gives me Date-Month-Year-Hours-Mins. I am using
type=both. Any idea how can I set it to display seconds too?

Thanks,
Aneesha



Re: general myfaces performance question

2006-11-16 Thread Aneesha Govil

Is it alright to use Trinidad while it is still in the incubator?

Aneesha

On 11/16/06, Martin Marinschek [EMAIL PROTECTED] wrote:


He should definitely take the Trinidad component set for high
performance requirements, with this, you're in the same region as
Struts for performance (probably better - cause if you do it yourself,
you won't get the same optimized state-saving as is implemented in
Trinidad).

regards,

Martin

On 11/15/06, Werner Punz [EMAIL PROTECTED] wrote:
 Ok, before anyone is falling down the chair because I ask this question.
 Here we go. A friend of mine is looking for a struts replacement
 framework covering extranet sites.

 Well here we go, my experience with jsf in the past is, that it was not
 too suitable for extranet, but is a perfect choice for intranet sites.
 The reason, higher overhead than plain lean frameworks only covering a
 minimalistic approach.

 The situation has changed however, facelets give a huge performance
 boost due to good caching.
 But I lack experience, I know several bigger intranet installations,
 but extranet is a fully different beast.

 So my question how good does jsf scale nowadays in those cases.
 Does anyone have any experience or samples?




--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



Re: general myfaces performance question

2006-11-16 Thread Matthias Wessendorf

Trinidad works with FAcelets and Tomahawk (use 1.1.5 for that)
(since commandXXX and form where making some problems)

On 11/16/06, Ulath (AKA: Murat HAZER) [EMAIL PROTECTED] wrote:

Does trinidad have any incompatibilities with tomahawk components and
facelets?


On 11/16/06, Matthias Wessendorf  [EMAIL PROTECTED] wrote:
 get a student :)

 On 11/16/06, Martin Marinschek  [EMAIL PROTECTED] wrote:
  No, I don't. Time for the example app being ported ;)
 
  regards,
 
  Martin
 
  On 11/16/06, Matthias Wessendorf  [EMAIL PROTECTED] wrote:
   do you have numbers for that better than struts ?
  
   On 11/16/06, Martin Marinschek  [EMAIL PROTECTED] wrote:
He should definitely take the Trinidad component set for high
performance requirements, with this, you're in the same region as
Struts for performance (probably better - cause if you do it
yourself,
you won't get the same optimized state-saving as is implemented in
Trinidad).
   
regards,
   
Martin
   
On 11/15/06, Werner Punz [EMAIL PROTECTED] wrote:
 Ok, before anyone is falling down the chair because I ask this
question.
 Here we go. A friend of mine is looking for a struts replacement
 framework covering extranet sites.

 Well here we go, my experience with jsf in the past is, that it
was not
 too suitable for extranet, but is a perfect choice for intranet
sites.
 The reason, higher overhead than plain lean frameworks only
covering a
 minimalistic approach.

 The situation has changed however, facelets give a huge
performance
 boost due to good caching.
 But I lack experience, I know several bigger intranet
installations,
 but extranet is a fully different beast.

 So my question how good does jsf scale nowadays in those cases.
 Does anyone have any experience or samples?


   
   
--
   
http://www.irian.at
   
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
   
Professional Support for Apache MyFaces
   
  
  
   --
   Matthias Wessendorf
   http://tinyurl.com/fmywh
  
   further stuff:
   blog: http://jroller.com/page/mwessendorf
   mail: mwessendorf-at-gmail-dot-com
  
 
 
  --
 
  http://www.irian.at
 
  Your JSF powerhouse -
  JSF Consulting, Development and
  Courses in English and German
 
  Professional Support for Apache MyFaces
 


 --
 Matthias Wessendorf
 http://tinyurl.com/fmywh

 further stuff:
 blog: http://jroller.com/page/mwessendorf
 mail: mwessendorf-at-gmail-dot-com




--
Murat HAZER
 http://www.projedunyasi.org



--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: general myfaces performance question

2006-11-16 Thread Werner Punz
Ulath (AKA: Murat HAZER) schrieb:
 Does trinidad have any incompatibilities with tomahawk components and
 facelets?

There has been some serious work done with the integration of both
complibs lately, if you want to mix it you should use the trunk, but to
my knowledge it should work (have not tried it though, but Thomas did,
he did the integration work as well)



Re: general myfaces performance question

2006-11-16 Thread Gerald Müllan

Sure, think about the history before trinidad has come to incubator.
It was oracle internal, so they have already used it in their webapps.

Apart from this, the usage of trinidad is emerging, also in some
real-world web-apps.

cheers,

Gerald

On 11/16/06, Aneesha Govil [EMAIL PROTECTED] wrote:

Is it alright to use Trinidad while it is still in the incubator?

Aneesha

On 11/16/06, Martin Marinschek  [EMAIL PROTECTED] wrote:
 He should definitely take the Trinidad component set for high
 performance requirements, with this, you're in the same region as
 Struts for performance (probably better - cause if you do it yourself,
 you won't get the same optimized state-saving as is implemented in
 Trinidad).

 regards,

 Martin

 On 11/15/06, Werner Punz [EMAIL PROTECTED] wrote:
  Ok, before anyone is falling down the chair because I ask this question.
  Here we go. A friend of mine is looking for a struts replacement
  framework covering extranet sites.
 
  Well here we go, my experience with jsf in the past is, that it was not
  too suitable for extranet, but is a perfect choice for intranet sites.
  The reason, higher overhead than plain lean frameworks only covering a
  minimalistic approach.
 
  The situation has changed however, facelets give a huge performance
  boost due to good caching.
  But I lack experience, I know several bigger intranet installations,
  but extranet is a fully different beast.
 
  So my question how good does jsf scale nowadays in those cases.
  Does anyone have any experience or samples?
 
 


 --

 http://www.irian.at

 Your JSF powerhouse -
 JSF Consulting, Development and
 Courses in English and German

 Professional Support for Apache MyFaces






--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


Re: general myfaces performance question

2006-11-16 Thread Matthias Wessendorf

Yes it is!
I am not saying that because I am a committer. I say that for the
following reason:

The Trinidad components are around the JSF community since years
(formal Oracle code)
They have been developed / tested /.../ in a corperate mind.

Incubation doesn't mean the stuff is instable. incubation just says
there is a new community growing inside the ASF

It is important for the ASF (apache software foundation) to ensure
that all projects work in the Apache spirit.  It is not about opening
just the sources, it is about building community.

The community building process is good with Trinidad. got
patches/feedback from users; we voted new committers in etc. bla bla
bla :)

So give the components a try. Don't be shy! :)

HTH,
Matthias

On 11/16/06, Aneesha Govil [EMAIL PROTECTED] wrote:

Is it alright to use Trinidad while it is still in the incubator?

Aneesha

On 11/16/06, Martin Marinschek  [EMAIL PROTECTED] wrote:
 He should definitely take the Trinidad component set for high
 performance requirements, with this, you're in the same region as
 Struts for performance (probably better - cause if you do it yourself,
 you won't get the same optimized state-saving as is implemented in
 Trinidad).

 regards,

 Martin

 On 11/15/06, Werner Punz [EMAIL PROTECTED] wrote:
  Ok, before anyone is falling down the chair because I ask this question.
  Here we go. A friend of mine is looking for a struts replacement
  framework covering extranet sites.
 
  Well here we go, my experience with jsf in the past is, that it was not
  too suitable for extranet, but is a perfect choice for intranet sites.
  The reason, higher overhead than plain lean frameworks only covering a
  minimalistic approach.
 
  The situation has changed however, facelets give a huge performance
  boost due to good caching.
  But I lack experience, I know several bigger intranet installations,
  but extranet is a fully different beast.
 
  So my question how good does jsf scale nowadays in those cases.
  Does anyone have any experience or samples?
 
 


 --

 http://www.irian.at

 Your JSF powerhouse -
 JSF Consulting, Development and
 Courses in English and German

 Professional Support for Apache MyFaces






--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: general myfaces performance question

2006-11-16 Thread Matthias Wessendorf

it works
in some (sample) apps I mix the two, because that is a common question,
when talking about Trinidad.

Almost everybody is asking about Tomahawk support, sometimes they ask
about other libs too

-M

On 11/16/06, Werner Punz [EMAIL PROTECTED] wrote:

Ulath (AKA: Murat HAZER) schrieb:
 Does trinidad have any incompatibilities with tomahawk components and
 facelets?

There has been some serious work done with the integration of both
complibs lately, if you want to mix it you should use the trunk, but to
my knowledge it should work (have not tried it though, but Thomas did,
he did the integration work as well)





--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: javax.servlet.ServletException: Client-id : _idJsp0 is duplicated in the faces tree.

2006-11-16 Thread Matthias Wessendorf

I am not sure,
perhaps that is related to the work directory of tomcat ?


On 11/16/06, behrangsa [EMAIL PROTECTED] wrote:


Hi,

When I modify a JSP (add/remove some children to a panelGrid,etc.) and press
F5 to see the changes, I get the following exception in Tomcat 5.5.17 or
5.5.20:

javax.faces.FacesException: Client-id : _idJsp0 is duplicated in the faces
tree. Component : _idJsp0, path: {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /position/index.jsp][Class:
javax.faces.component.html.HtmlPanelGrid,Id: positionPane][Class:
javax.faces.component.html.HtmlPanelGrid,Id: ositionTitlePane][Class:
javax.faces.component.html.HtmlOutputText,Id: _idJsp0]}

org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)

org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)

org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)

The second time I press F5, everything starts working fine again. Any ideas
how can I overcome this problem?

Also, sometimes when I change the value attribute of an outputText and press
F5 to see the changes, the changes are not reflected... any ideas what
should I do to make these glitches go away?

Regards,
Behi
--
View this message in context: 
http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7370404
Sent from the MyFaces - Users mailing list archive at Nabble.com.





--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: general myfaces performance question

2006-11-16 Thread Martin Marinschek

Hi,

Thomas Spiegl and me have made sure you can use Tomahawk (snapshot)
with Trinidad w/o problems.

Try it - if there is a problem, come back to us and tell us about it.

regards,

Martin

On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:

it works
in some (sample) apps I mix the two, because that is a common question,
when talking about Trinidad.

Almost everybody is asking about Tomahawk support, sometimes they ask
about other libs too

-M

On 11/16/06, Werner Punz [EMAIL PROTECTED] wrote:
 Ulath (AKA: Murat HAZER) schrieb:
  Does trinidad have any incompatibilities with tomahawk components and
  facelets?
 
 There has been some serious work done with the integration of both
 complibs lately, if you want to mix it you should use the trunk, but to
 my knowledge it should work (have not tried it though, but Thomas did,
 he did the integration work as well)




--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com




--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


panelTabbedPane problem while migrating from 1.1.3 to 1.1.4

2006-11-16 Thread Pawel Golawski
Hello!
I use panelTabbedPane with serverSideTabSwitch set to true. In tomahawk 1.1.3 
content of invisible tabs was rendered and not visible only. But in 
tomahawk-1.1.4-r465130-SNAPSHOT this content is not rendered, so state  is lost 
while changing tab. 
I can't find anything about it.
Please help!
Poul

 
-
Sponsored Link

$420,000 Mortgage for $1,399/month -   Think You Pay Too Much For Your 
Mortgage? Find Out!

[Tobago] Setter method tc:sheet

2006-11-16 Thread PiotrekJ

Hi again,
Does tc:sheet support setter method?

I can't do it. 
tc:sheet value=#{Bean.list}..
getList works, setList is not executed ;/

Th again,
Peter

-- 
View this message in context: 
http://www.nabble.com/-Tobago---Setter-method---tc%3Asheet-tf2642057.html#a7375088
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Tree2 - link problem

2006-11-16 Thread Schweighardt, Nicole
Hello,

I have got a problem with the tree2 and links.

I have a tree and some nodes are links. If  someone clicks on the link I want 
to call a method in bean. But it does not work.


Here is the code:

tree.jsp

f:subview id=mytree
h:form id=treeform

t:tree2 id=tree value=#{treeBean.treeData} var=node varNodeToggler=t

f:facet name=root
h:panelGroup id=rootgroup
h:outputText value=#{node.description} 
styleClass=nodeFolder title=#{node.description}/
/h:panelGroup
/f:facet
f:facet name=firstleaf
h:panelGroup id=firstleafgroup
 h:outputText value=#{node.description} 
styleClass=nodeFolder/
/h:panelGroup
/f:facet
f:facet name=secondLeaf 
h:panelGroup id=secondleafgroup  
h:form id=leafform
h:commandLink id=Link immediate=true 
action=#{treeBean.showNested} title=#{node.description} 
actionListener=#{t.setNodeSelected}
h:outputText value=showNested/
f:param name=docNum value=#{node.description}/
/h:commandLink
   /h:form
/h:panelGroup
/f:facet
/t:tree2
/h:form

 /f:subview


If I use the same link with action=#{treeBean.showNested}  outside the tree, 
it works!! 


TreeBean.java 

public class TreeBean {

private TreeModelBase _treeModel;
private HtmlTree  _tree;

public TreeNode getTreeData()
 {

TreeNode treeData = new TreeNodeBase(root, Process, false);

TreeNodeBase firstLeafNode = new TreeNodeBase(firstleaf, Job 
Overview, false);
treeData.getChildren().add(firstLeafNode);


//First Leaf
firstLeafNode = new TreeNodeBase(firstleaf, Internal Model, 
false);

firstLeafNode.getChildren().add(new TreeNodeBase(secondLeaf, 
erstens,1, true));   
treeData.getChildren().add(firstLeafNode);

return treeData;
 }
 
 
 public void showNested(){
 
 System.out.println(in showNested());
 }
...
}

Thank you for your help.
N.Schweighardt




Get browsers resolution

2006-11-16 Thread Adrian Mitev

Hi all! I need to get browser's width and heigth and by this size i'll
include different stylesheets. Any suggestions how to do it?


panelTabbedPane problem while migrating from 1.1.3 to 1.1.4

2006-11-16 Thread Pawel Golawski
Hello!
I use panelTabbedPane with serverSideTabSwitch set to true. In tomahawk 1.1.3 
content of invisible tabs was rendered and not visible only. But in 
tomahawk-1.1.4-r465130-SNAPSHOT this content is not rendered, so state  is lost 
while changing tab. 
I can't find anything about it.
Please help!
Poul
 
-
Sponsored Link

Mortgage rates near 39yr lows. $420,000 Mortgage for $1,399/mo - Calculate new 
house payment

[Tomahawk] Popup don't work

2006-11-16 Thread Christian Wiesing

Hello,

i have a problem with t:popup. I never get a popup window. I tried it 
as follow:


   t:popup id=infoPopup
styleClass=popup
closePopupOnExitingElement=false
closePopupOnExitingPopup=false
displayAtDistanceX=10
 displayAtDistanceY=10
h:outputText id=info value=info/
   f:facet name=popup
   h:panelGroup
 h:panelGrid columns=1
   h:outputText id=testOutput 
value=Test output/

   /h:panelGrid
   /h:panelGroup
   /f:facet
   /t:popup

Is there any configuration (or something like that) that i have to use 
to get it working?


I use MyFaces 1.4, Tomahawk 1.3 and Facelets.

regards,

Christian


Re: Tree2 - link problem

2006-11-16 Thread Matthias Wessendorf

Nicole,

you are using formform//form

nested forms are invalid html.

since your tree2 is already wrapped by a form, remove the *wrapper*
from the tree2-link.

HTH,
Matthias

(MyFaces should tell you that, at least it is configurable)
(RI is silent there ;))

On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:

Hello,

I have got a problem with the tree2 and links.

I have a tree and some nodes are links. If  someone clicks on the link I want 
to call a method in bean. But it does not work.


Here is the code:

tree.jsp

f:subview id=mytree
h:form id=treeform

t:tree2 id=tree value=#{treeBean.treeData} var=node varNodeToggler=t

f:facet name=root
h:panelGroup id=rootgroup
h:outputText value=#{node.description} 
styleClass=nodeFolder title=#{node.description}/
/h:panelGroup
/f:facet
f:facet name=firstleaf
h:panelGroup id=firstleafgroup
 h:outputText value=#{node.description} 
styleClass=nodeFolder/
/h:panelGroup
/f:facet
f:facet name=secondLeaf 
h:panelGroup id=secondleafgroup
h:form id=leafform
h:commandLink id=Link immediate=true action=#{treeBean.showNested} 
title=#{node.description} actionListener=#{t.setNodeSelected}
h:outputText value=showNested/
f:param name=docNum value=#{node.description}/
/h:commandLink
   /h:form
/h:panelGroup
/f:facet
/t:tree2
/h:form

 /f:subview


If I use the same link with action=#{treeBean.showNested}  outside the tree, 
it works!!


TreeBean.java

public class TreeBean {

private TreeModelBase _treeModel;
private HtmlTree  _tree;

public TreeNode getTreeData()
 {

TreeNode treeData = new TreeNodeBase(root, Process, false);

TreeNodeBase firstLeafNode = new TreeNodeBase(firstleaf, Job 
Overview, false);
treeData.getChildren().add(firstLeafNode);


//First Leaf
firstLeafNode = new TreeNodeBase(firstleaf, Internal Model, 
false);

firstLeafNode.getChildren().add(new TreeNodeBase(secondLeaf, 
erstens,1, true));
treeData.getChildren().add(firstLeafNode);

return treeData;
 }


 public void showNested(){

 System.out.println(in showNested());
 }
...
}

Thank you for your help.
N.Schweighardt






--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: Tree2 - link problem

2006-11-16 Thread Matthias Wessendorf

 context-param
description
Validate managed beans, navigation rules and ensure 
that forms
are not nested.
/description
param-nameorg.apache.myfaces.VALIDATE/param-name
param-valuetrue/param-value
   /context-param

On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:

Nicole,

you are using formform//form

nested forms are invalid html.

since your tree2 is already wrapped by a form, remove the *wrapper*
from the tree2-link.

HTH,
Matthias

(MyFaces should tell you that, at least it is configurable)
(RI is silent there ;))

On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
 Hello,

 I have got a problem with the tree2 and links.

 I have a tree and some nodes are links. If  someone clicks on the link I want 
to call a method in bean. But it does not work.


 Here is the code:

 tree.jsp

 f:subview id=mytree
 h:form id=treeform

 t:tree2 id=tree value=#{treeBean.treeData} var=node varNodeToggler=t

 f:facet name=root
 h:panelGroup id=rootgroup
 h:outputText value=#{node.description} 
styleClass=nodeFolder title=#{node.description}/
 /h:panelGroup
 /f:facet
 f:facet name=firstleaf
 h:panelGroup id=firstleafgroup
  h:outputText value=#{node.description} 
styleClass=nodeFolder/
 /h:panelGroup
 /f:facet
 f:facet name=secondLeaf 
 h:panelGroup id=secondleafgroup
 h:form id=leafform
 h:commandLink id=Link immediate=true action=#{treeBean.showNested} 
title=#{node.description} actionListener=#{t.setNodeSelected}
 h:outputText value=showNested/
 f:param name=docNum value=#{node.description}/
 /h:commandLink
/h:form
 /h:panelGroup
 /f:facet
 /t:tree2
 /h:form

  /f:subview


 If I use the same link with action=#{treeBean.showNested}  outside the 
tree, it works!!


 TreeBean.java

 public class TreeBean {

 private TreeModelBase _treeModel;
 private HtmlTree  _tree;

 public TreeNode getTreeData()
  {

 TreeNode treeData = new TreeNodeBase(root, Process, 
false);

 TreeNodeBase firstLeafNode = new TreeNodeBase(firstleaf, Job 
Overview, false);
 treeData.getChildren().add(firstLeafNode);


 //First Leaf
 firstLeafNode = new TreeNodeBase(firstleaf, Internal 
Model, false);

 firstLeafNode.getChildren().add(new TreeNodeBase(secondLeaf, 
erstens,1, true));
 treeData.getChildren().add(firstLeafNode);

 return treeData;
  }


  public void showNested(){

  System.out.println(in showNested());
  }
 ...
 }

 Thank you for your help.
 N.Schweighardt





--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com




--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: [Tomahawk] Popup don't work

2006-11-16 Thread Matthias Wessendorf

I remember there was an issue...
(but what?)

is it possible to use MyFAces 1.1.5-SNAP and same for Tomahawk too ?



On 11/16/06, Christian Wiesing [EMAIL PROTECTED] wrote:

Hello,

i have a problem with t:popup. I never get a popup window. I tried it
as follow:

t:popup id=infoPopup
 styleClass=popup
 closePopupOnExitingElement=false
 closePopupOnExitingPopup=false
 displayAtDistanceX=10
  displayAtDistanceY=10
 h:outputText id=info value=info/
f:facet name=popup
h:panelGroup
  h:panelGrid columns=1
h:outputText id=testOutput
value=Test output/
/h:panelGrid
/h:panelGroup
/f:facet
/t:popup

Is there any configuration (or something like that) that i have to use
to get it working?

I use MyFaces 1.4, Tomahawk 1.3 and Facelets.

regards,

Christian




--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


AW: Tree2 - link problem

2006-11-16 Thread Schweighardt, Nicole
Hi Matthias,

thanks, that´s right, but unfortunately it wasn´t the reason.

That is the whole jsp, which includes the tree.jsp

tabbedPane.jsp
%@ page session=false
%%@ page contentType=text/html;charset=UTF-8 language=java %
%@ taglib prefix=f uri=http://java.sun.com/jsf/core; %
%@ taglib prefix=h uri=http://java.sun.com/jsf/html; %
%@ taglib prefix=tiles uri=http://struts.apache.org/tags-tiles%
 %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t %

 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
head
titlePrototype/title
   link rel=stylesheet type=text/css href=%= request.getContextPath() 
%/css/basic.css /
/head
body
f:view
f:subview id=panelTabbedPane1
t:panelTabbedPane bgcolor=#CC 
serverSideTabSwitch=false
t:panelTab id=tab1 label=Process
t:div id=treeDiv 
style=color:red;width:250px;height:400px;background-color : 
#99;float:left;
f:verbatim
tiles:insert attribute=tree 
flush=false /
/f:verbatim

h:form
//This commandLink works!!!
 h:commandLink 
action=#{treeBean.showNested} id=testlink
h:outputText 
value=showNested/
/h:commandLink
f:verbatimbr/f:verbatim
h:commandLink value=nested 
Tiles action=nav_page4 id=_9 
/h:commandLink
/h:form
...

Any Idea?
Thank you very much,
Nicki



-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
Matthias Wessendorf
Gesendet: Donnerstag, 16. November 2006 12:27
An: MyFaces Discussion
Betreff: Re: Tree2 - link problem


  context-param
description
Validate managed beans, navigation rules and ensure 
that forms
are not nested.
/description
param-nameorg.apache.myfaces.VALIDATE/param-name
param-valuetrue/param-value
/context-param

On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
 Nicole,

 you are using formform//form

 nested forms are invalid html.

 since your tree2 is already wrapped by a form, remove the *wrapper*
 from the tree2-link.

 HTH,
 Matthias

 (MyFaces should tell you that, at least it is configurable)
 (RI is silent there ;))

 On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
  Hello,
 
  I have got a problem with the tree2 and links.
 
  I have a tree and some nodes are links. If  someone clicks on the link I 
  want to call a method in bean. But it does not work.
 
 
  Here is the code:
 
  tree.jsp
 
  f:subview id=mytree
  h:form id=treeform
 
  t:tree2 id=tree value=#{treeBean.treeData} var=node 
  varNodeToggler=t
 
  f:facet name=root
  h:panelGroup id=rootgroup
  h:outputText value=#{node.description} 
  styleClass=nodeFolder title=#{node.description}/
  /h:panelGroup
  /f:facet
  f:facet name=firstleaf
  h:panelGroup id=firstleafgroup
   h:outputText value=#{node.description} 
  styleClass=nodeFolder/
  /h:panelGroup
  /f:facet
  f:facet name=secondLeaf 
  h:panelGroup id=secondleafgroup
  h:form id=leafform
  h:commandLink id=Link immediate=true 
  action=#{treeBean.showNested} title=#{node.description} 
  actionListener=#{t.setNodeSelected}
  h:outputText value=showNested/
  f:param name=docNum value=#{node.description}/
  /h:commandLink
 /h:form
  /h:panelGroup
  /f:facet
  /t:tree2
  /h:form
 
   /f:subview
 
 
  If I use the same link with action=#{treeBean.showNested}  outside the 
  tree, it works!!
 
 
  TreeBean.java
 
  public class TreeBean {
 
  private TreeModelBase _treeModel;
  private HtmlTree  _tree;
 
  public TreeNode getTreeData()
   {
 
  TreeNode treeData = new TreeNodeBase(root, Process, 
  false);
 
  TreeNodeBase firstLeafNode = new TreeNodeBase(firstleaf, 
  Job Overview, false);
  treeData.getChildren().add(firstLeafNode);
 
 
  //First Leaf
  firstLeafNode = new TreeNodeBase(firstleaf, Internal 
  Model, false);
 
  firstLeafNode.getChildren().add(new 
  TreeNodeBase(secondLeaf, erstens,1, true));
  treeData.getChildren().add(firstLeafNode);
 
 

Re: [Tomahawk] Popup don't work

2006-11-16 Thread Christian Wiesing

I changed the libs to 1.1.5-Snap but it still don't work.

Matthias Wessendorf schrieb:

I remember there was an issue...
(but what?)

is it possible to use MyFAces 1.1.5-SNAP and same for Tomahawk too ?



On 11/16/06, Christian Wiesing [EMAIL PROTECTED] wrote:

Hello,

i have a problem with t:popup. I never get a popup window. I tried it
as follow:

t:popup id=infoPopup
 styleClass=popup
 closePopupOnExitingElement=false
 closePopupOnExitingPopup=false
 displayAtDistanceX=10
  displayAtDistanceY=10
 h:outputText id=info value=info/
f:facet name=popup
h:panelGroup
  h:panelGrid columns=1
h:outputText id=testOutput
value=Test output/
/h:panelGrid
/h:panelGroup
/f:facet
/t:popup

Is there any configuration (or something like that) that i have to use
to get it working?

I use MyFaces 1.4, Tomahawk 1.3 and Facelets.

regards,

Christian








Re: [Tomahawk] Popup don't work

2006-11-16 Thread Gerald Müllan

Hi,

well, i use t:popUp the same way like you with the latest build and it works.

Some problems with extensionsFilter?

Here is the snippet:

t:popup styleClass=popup
closePopupOnExitingElement=true
closePopupOnExitingPopup=true
displayAtDistanceX=10
displayAtDistanceY=10 
   h:panelGrid  columns=2
   h:graphicImage url=/images/ico_link_cs.gif/
   h:outputText
value=#{sessionBean.recentInstantMessage.header}
 style=padding-right:15px;/
   /h:panelGrid
   f:facet name=popup
   h:panelGrid columns=2 
   h:outputText
value=#{text.right_bar_messageBody}/
   h:outputText
value=#{sessionBean.recentInstantMessage.body}/
   /h:panelGrid
   /f:facet
   /t:popup

Seems to be the same usage as you have.

cheers,

Gerald

On 11/16/06, Christian Wiesing [EMAIL PROTECTED] wrote:

I changed the libs to 1.1.5-Snap but it still don't work.

Matthias Wessendorf schrieb:
 I remember there was an issue...
 (but what?)

 is it possible to use MyFAces 1.1.5-SNAP and same for Tomahawk too ?



 On 11/16/06, Christian Wiesing [EMAIL PROTECTED] wrote:
 Hello,

 i have a problem with t:popup. I never get a popup window. I tried it
 as follow:

 t:popup id=infoPopup
  styleClass=popup
  closePopupOnExitingElement=false
  closePopupOnExitingPopup=false
  displayAtDistanceX=10
   displayAtDistanceY=10
  h:outputText id=info value=info/
 f:facet name=popup
 h:panelGroup
   h:panelGrid columns=1
 h:outputText id=testOutput
 value=Test output/
 /h:panelGrid
 /h:panelGroup
 /f:facet
 /t:popup

 Is there any configuration (or something like that) that i have to use
 to get it working?

 I use MyFaces 1.4, Tomahawk 1.3 and Facelets.

 regards,

 Christian








--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


Re: Tomahawk 1.1.3 inputFileUpload solution

2006-11-16 Thread aztec

hi,



   i  followed every thing mentioned in  your solution below(ur message) for
input file upload.


But  i am getting error valuebinding Impl i.e can not set the value for
expression #{mybean.myfile} to  a new value of type
org.apache.myfaces.custom.fileupload.UploadedFileDefaultMemoryImpl .

and giving exception

javax.servlet.jsp.el.ELException: Attempt to coerce a value of type
org.apache.
myfaces.custom.fileupload.UploadedFileDefaultMemoryImpl to type
org.apache.myf
aces.custom.fileupload.UploadedFile



this is my problem please help me as soon as possible through mail








JBuilderDoug wrote:
 
 I finally figured this out, so  I'm going to put an entire example in this
 post.  I'm using Tomahawk 1.1.3 with RI JSF created in Borland's JBuilder. 
 I've created a .war file from borland and deployed it under Tomcat 5.5 so
 it should be Borland independent.  The problems I was having previously
 were in trying to deploy Tomahawk on a old JSF project. I'm pretty sure
 I'm safe in saying you must use JSP 2.0 and Servlet 2.4 as a minimum.
 
 inputFileUpload/Tomahawk specific elements are bold/italic
 
 In the backing bean WelcomeBean.java, I only read the uploaded file into a
 byte [].  In my personal application, I simply insert the byte [] into an
 Oracle BLOB.  You may need to write it to a file.  I'll assume you know
 how to do that.
 
 I think that's pretty much it.  If you have any questions please respond
 to this post.  I'll receive an e-mail and try to help.  If you want to
 know how to implement Tomahawk 1.1.3 into Borland's JBuilder, I can help
 with that also I believe.
 
 Doug
 
 Required libraries for this minimal project
 
 commons-beanutils.jar
 commons-collections.jar
 commons-digester.jar
 commons-fileupload.jar
 commons-logging.jar
 jsf-api.jar
 jsf-impl.jar
 jstl.jar
 standard.jar
 tomahawk-1.1.3.jar
 
 index.jsp
 
 html
 html
 head
 titleindex/title
 /head
 body bgcolor=#c0
 h1/h1
 jsp:forward page=Welcome.faces/jsp:forward
 /body
 /html
 
 Welcome.jsp
 
 [EMAIL PROTECTED] uri=http://java.sun.com/jsf/html; prefix=h%
 [EMAIL PROTECTED] uri=http://java.sun.com/jsf/core; prefix=f%
 %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t %
 html
 head
 titleindex/title
 /head
 body bgcolor=#ff
 h1GoHurst Welcome/h1
 f:view
   h:form id=welcomeForm enctype=multipart/form-data
 t:panelGrid columns=3
 t:inputFileUpload id=uFile value=#{WelcomeBean.theFile}
 storage=file required=true /
 /t:panelGrid
 h:panelGrid columns=3
 h:commandButton id=onlyButton action=#{WelcomeBean.fmWelcome}
 value=Click here to Upload/
 /h:panelGrid
   /h:form
 /f:view
 /body
 /html
 
 WelcomeBean.java
 
 package tomahawkfileupload;
 
 import java.io.File;
 import java.io.InputStream;
 import javax.servlet.http.HttpSession;
 import javax.faces.context.FacesContext;
 import org.apache.myfaces.custom.fileupload.UploadedFile;
 
 public class WelcomeBean
 {
 private UploadedFile theFile;
 
 public UploadedFile getTheFile() {
   return theFile;
 }
 
 public void setTheFile (UploadedFile theFile) {
   this.theFile = theFile;
 }
 
 public String fmWelcome()
 {
 FacesContext context = FacesContext.getCurrentInstance();
 HttpSession session = (HttpSession)
 context.getExternalContext().getSession(false);
 try {
   InputStream stream = theFile.getInputStream();
   long fSize = theFile.getSize();
   byte [] buffer = new byte[(int)fSize];
   stream.read(buffer, 0, (int)fSize);
   stream.close();
 } catch (Exception ioe) {
ioe.printStackTrace(); 
 }
 return success;
 }
 }
 
 
 web.xml
 
 ?xml version=1.0 encoding=UTF-8?
 web-app xmlns=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; version=2.4
   display-nameTomaModule/display-name
   servlet
 servlet-nameFaces Servlet/servlet-name
 servlet-classjavax.faces.webapp.FacesServlet/servlet-class
 load-on-startup1/load-on-startup
   /servlet
   servlet-mapping
 servlet-nameFaces Servlet/servlet-name
 url-pattern*.faces/url-pattern
   /servlet-mapping
   filter
 filter-nameMyFacesExtensionsFilter/filter-name

 filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
 init-param
   param-namemaxFileSize/param-name
   param-value20m/param-value
 /init-param
   /filter
   filter-mapping
 filter-nameMyFacesExtensionsFilter/filter-name
 servlet-nameFaces Servlet/servlet-name
   /filter-mapping
   filter-mapping
 filter-nameMyFacesExtensionsFilter/filter-name
 url-pattern/faces/myFacesExtensionResource/*/url-pattern
   /filter-mapping
 /web-app
 
 
 faces-config.xml
 
 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE faces-config PUBLIC -//Sun Microsystems, Inc.//DTD JavaServer
 Faces Config 1.1//EN 

Re: general myfaces performance question

2006-11-16 Thread Aneesha Govil

Yes, I am aware of the Oracle connection. When I was evaluating what to use
for my project, I could not find a download location anywhere on the
incubator. Only source was available. The mailing list did not work either.
It looked very useful from documentation et al.

So how do I go about it if I want to use it? Anything like nightly builds
and where can I find them?

Thanks a lot.
Regards,
Aneesha

On 11/16/06, Gerald Müllan [EMAIL PROTECTED] wrote:


Sure, think about the history before trinidad has come to incubator.
It was oracle internal, so they have already used it in their webapps.

Apart from this, the usage of trinidad is emerging, also in some
real-world web-apps.

cheers,

Gerald

On 11/16/06, Aneesha Govil [EMAIL PROTECTED] wrote:
 Is it alright to use Trinidad while it is still in the incubator?

 Aneesha

 On 11/16/06, Martin Marinschek  [EMAIL PROTECTED] wrote:
  He should definitely take the Trinidad component set for high
  performance requirements, with this, you're in the same region as
  Struts for performance (probably better - cause if you do it yourself,
  you won't get the same optimized state-saving as is implemented in
  Trinidad).
 
  regards,
 
  Martin
 
  On 11/15/06, Werner Punz [EMAIL PROTECTED] wrote:
   Ok, before anyone is falling down the chair because I ask this
question.
   Here we go. A friend of mine is looking for a struts replacement
   framework covering extranet sites.
  
   Well here we go, my experience with jsf in the past is, that it was
not
   too suitable for extranet, but is a perfect choice for intranet
sites.
   The reason, higher overhead than plain lean frameworks only covering
a
   minimalistic approach.
  
   The situation has changed however, facelets give a huge performance
   boost due to good caching.
   But I lack experience, I know several bigger intranet installations,
   but extranet is a fully different beast.
  
   So my question how good does jsf scale nowadays in those cases.
   Does anyone have any experience or samples?
  
  
 
 
  --
 
  http://www.irian.at
 
  Your JSF powerhouse -
  JSF Consulting, Development and
  Courses in English and German
 
  Professional Support for Apache MyFaces
 




--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



Re: Tree2 - link problem

2006-11-16 Thread Matthias Wessendorf

do you get js error instead (use firebug for checking that)

-M

On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:

Hi Matthias,

thanks, that´s right, but unfortunately it wasn´t the reason.

That is the whole jsp, which includes the tree.jsp

tabbedPane.jsp
%@ page session=false
%%@ page contentType=text/html;charset=UTF-8 language=java %
%@ taglib prefix=f uri=http://java.sun.com/jsf/core; %
%@ taglib prefix=h uri=http://java.sun.com/jsf/html; %
%@ taglib prefix=tiles uri=http://struts.apache.org/tags-tiles%
 %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t %

 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
head
titlePrototype/title
   link rel=stylesheet type=text/css href=%= request.getContextPath() 
%/css/basic.css /
/head
body
f:view
f:subview id=panelTabbedPane1
t:panelTabbedPane bgcolor=#CC 
serverSideTabSwitch=false
t:panelTab id=tab1 label=Process
t:div id=treeDiv 
style=color:red;width:250px;height:400px;background-color : #99;float:left;
f:verbatim
tiles:insert attribute=tree 
flush=false /
/f:verbatim

h:form
//This commandLink works!!!
 h:commandLink 
action=#{treeBean.showNested} id=testlink
h:outputText 
value=showNested/
/h:commandLink
f:verbatimbr/f:verbatim
h:commandLink value=nested Tiles 
action=nav_page4 id=_9 
/h:commandLink
/h:form
...

Any Idea?
Thank you very much,
Nicki



-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
Matthias Wessendorf
Gesendet: Donnerstag, 16. November 2006 12:27
An: MyFaces Discussion
Betreff: Re: Tree2 - link problem


  context-param
description
Validate managed beans, navigation rules and ensure 
that forms
are not nested.
/description
param-nameorg.apache.myfaces.VALIDATE/param-name
param-valuetrue/param-value
/context-param

On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
 Nicole,

 you are using formform//form

 nested forms are invalid html.

 since your tree2 is already wrapped by a form, remove the *wrapper*
 from the tree2-link.

 HTH,
 Matthias

 (MyFaces should tell you that, at least it is configurable)
 (RI is silent there ;))

 On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
  Hello,
 
  I have got a problem with the tree2 and links.
 
  I have a tree and some nodes are links. If  someone clicks on the link I 
want to call a method in bean. But it does not work.
 
 
  Here is the code:
 
  tree.jsp
 
  f:subview id=mytree
  h:form id=treeform
 
  t:tree2 id=tree value=#{treeBean.treeData} var=node 
varNodeToggler=t
 
  f:facet name=root
  h:panelGroup id=rootgroup
  h:outputText value=#{node.description} 
styleClass=nodeFolder title=#{node.description}/
  /h:panelGroup
  /f:facet
  f:facet name=firstleaf
  h:panelGroup id=firstleafgroup
   h:outputText value=#{node.description} 
styleClass=nodeFolder/
  /h:panelGroup
  /f:facet
  f:facet name=secondLeaf 
  h:panelGroup id=secondleafgroup
  h:form id=leafform
  h:commandLink id=Link immediate=true action=#{treeBean.showNested} 
title=#{node.description} actionListener=#{t.setNodeSelected}
  h:outputText value=showNested/
  f:param name=docNum value=#{node.description}/
  /h:commandLink
 /h:form
  /h:panelGroup
  /f:facet
  /t:tree2
  /h:form
 
   /f:subview
 
 
  If I use the same link with action=#{treeBean.showNested}  outside the 
tree, it works!!
 
 
  TreeBean.java
 
  public class TreeBean {
 
  private TreeModelBase _treeModel;
  private HtmlTree  _tree;
 
  public TreeNode getTreeData()
   {
 
  TreeNode treeData = new TreeNodeBase(root, Process, 
false);
 
  TreeNodeBase firstLeafNode = new TreeNodeBase(firstleaf, Job 
Overview, false);
  treeData.getChildren().add(firstLeafNode);
 
 
  //First Leaf
  firstLeafNode = new TreeNodeBase(firstleaf, Internal 
Model, false);
 
  firstLeafNode.getChildren().add(new 

Re: general myfaces performance question

2006-11-16 Thread Matthias Wessendorf

mailing list works, I am on

check the trinidad wiki for nbuilds (from continuum)

http://wiki.apache.org/myfaces/Trinidad

On 11/16/06, Aneesha Govil [EMAIL PROTECTED] wrote:

Yes, I am aware of the Oracle connection. When I was evaluating what to use
for my project, I could not find a download location anywhere on the
incubator. Only source was available. The mailing list did not work either.
It looked very useful from documentation et al.

So how do I go about it if I want to use it? Anything like nightly builds
and where can I find them?

Thanks a lot.
Regards,
Aneesha


On 11/16/06, Gerald Müllan [EMAIL PROTECTED] wrote:
 Sure, think about the history before trinidad has come to incubator.
 It was oracle internal, so they have already used it in their webapps.

 Apart from this, the usage of trinidad is emerging, also in some
 real-world web-apps.

 cheers,

 Gerald

 On 11/16/06, Aneesha Govil [EMAIL PROTECTED] wrote:
  Is it alright to use Trinidad while it is still in the incubator?
 
  Aneesha
 
  On 11/16/06, Martin Marinschek  [EMAIL PROTECTED] wrote:
   He should definitely take the Trinidad component set for high
   performance requirements, with this, you're in the same region as
   Struts for performance (probably better - cause if you do it yourself,
   you won't get the same optimized state-saving as is implemented in
   Trinidad).
  
   regards,
  
   Martin
  
   On 11/15/06, Werner Punz [EMAIL PROTECTED] wrote:
Ok, before anyone is falling down the chair because I ask this
question.
Here we go. A friend of mine is looking for a struts replacement
framework covering extranet sites.
   
Well here we go, my experience with jsf in the past is, that it was
not
too suitable for extranet, but is a perfect choice for intranet
sites.
The reason, higher overhead than plain lean frameworks only covering
a
minimalistic approach.
   
The situation has changed however, facelets give a huge performance
boost due to good caching.
But I lack experience, I know several bigger intranet installations,
but extranet is a fully different beast.
   
So my question how good does jsf scale nowadays in those cases.
Does anyone have any experience or samples?
   
   
  
  
   --
  
   http://www.irian.at
  
   Your JSF powerhouse -
   JSF Consulting, Development and
   Courses in English and German
  
   Professional Support for Apache MyFaces
  
 
 


 --
 http://www.irian.at

 Your JSF powerhouse -
 JSF Consulting, Development and
 Courses in English and German

 Professional Support for Apache MyFaces






--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: Strange problem, datatable sorting

2006-11-16 Thread Hasnain Badami

I also observed that when I am clicking on the second or the following
columns the ascending/descending toggler doesnt work, i.e. always the value
true is set in setAscending(boolean ascending). Therefore, it always sorts
in ascending order. Whereas clicking on the first column sets the
ascending/descending toggler perfectly, and the sorting works. Any
suggestions?


On 11/15/06, Hasnain Badami [EMAIL PROTECTED] wrote:


hi

I am using a datatable. I have written the code as required for sorting.
Now when I click on the header of the first column the sorting works fine. I
can also see the ascending/descending toggler working in the INVOKE_APPLICATION
phase. But when I click on the header of the second or the following columns
it works once, but then nothing happens. Any ideas?

Thanks in advance

HB.



Re: general myfaces performance question

2006-11-16 Thread Aneesha Govil

Well how do I subscribe to the mailing list? The subscribe links aren't
links here -
http://incubator.apache.org/adffaces/trinidad-build/mail-lists.html

Is it the standard [EMAIL PROTECTED]

Thanks,
Aneesha

On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:


mailing list works, I am on

check the trinidad wiki for nbuilds (from continuum)

http://wiki.apache.org/myfaces/Trinidad

On 11/16/06, Aneesha Govil [EMAIL PROTECTED] wrote:
 Yes, I am aware of the Oracle connection. When I was evaluating what to
use
 for my project, I could not find a download location anywhere on the
 incubator. Only source was available. The mailing list did not work
either.
 It looked very useful from documentation et al.

 So how do I go about it if I want to use it? Anything like nightly
builds
 and where can I find them?

 Thanks a lot.
 Regards,
 Aneesha


 On 11/16/06, Gerald Müllan [EMAIL PROTECTED] wrote:
  Sure, think about the history before trinidad has come to incubator.
  It was oracle internal, so they have already used it in their webapps.
 
  Apart from this, the usage of trinidad is emerging, also in some
  real-world web-apps.
 
  cheers,
 
  Gerald
 
  On 11/16/06, Aneesha Govil [EMAIL PROTECTED] wrote:
   Is it alright to use Trinidad while it is still in the incubator?
  
   Aneesha
  
   On 11/16/06, Martin Marinschek  [EMAIL PROTECTED] wrote:
He should definitely take the Trinidad component set for high
performance requirements, with this, you're in the same region as
Struts for performance (probably better - cause if you do it
yourself,
you won't get the same optimized state-saving as is implemented in
Trinidad).
   
regards,
   
Martin
   
On 11/15/06, Werner Punz [EMAIL PROTECTED] wrote:
 Ok, before anyone is falling down the chair because I ask this
 question.
 Here we go. A friend of mine is looking for a struts replacement
 framework covering extranet sites.

 Well here we go, my experience with jsf in the past is, that it
was
 not
 too suitable for extranet, but is a perfect choice for intranet
 sites.
 The reason, higher overhead than plain lean frameworks only
covering
 a
 minimalistic approach.

 The situation has changed however, facelets give a huge
performance
 boost due to good caching.
 But I lack experience, I know several bigger intranet
installations,
 but extranet is a fully different beast.

 So my question how good does jsf scale nowadays in those cases.
 Does anyone have any experience or samples?


   
   
--
   
http://www.irian.at
   
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
   
Professional Support for Apache MyFaces
   
  
  
 
 
  --
  http://www.irian.at
 
  Your JSF powerhouse -
  JSF Consulting, Development and
  Courses in English and German
 
  Professional Support for Apache MyFaces
 




--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com



Re: general myfaces performance question

2006-11-16 Thread Aneesha Govil

Found it on the Wiki - [EMAIL PROTECTED]

Sometimes it's difficult to remember that wiki is more correct than the
website.

Thanks.
Aneesha

On 11/16/06, Aneesha Govil [EMAIL PROTECTED] wrote:


Well how do I subscribe to the mailing list? The subscribe links aren't
links here - http://incubator.apache.org/adffaces/trinidad-build/mail-lists.html


Is it the standard [EMAIL PROTECTED]

Thanks,
Aneesha

On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:

 mailing list works, I am on

 check the trinidad wiki for nbuilds (from continuum)

 http://wiki.apache.org/myfaces/Trinidad

 On 11/16/06, Aneesha Govil  [EMAIL PROTECTED] wrote:
  Yes, I am aware of the Oracle connection. When I was evaluating what
 to use
  for my project, I could not find a download location anywhere on the
  incubator. Only source was available. The mailing list did not work
 either.
  It looked very useful from documentation et al.
 
  So how do I go about it if I want to use it? Anything like nightly
 builds
  and where can I find them?
 
  Thanks a lot.
  Regards,
  Aneesha
 
 
  On 11/16/06, Gerald Müllan [EMAIL PROTECTED] wrote:
   Sure, think about the history before trinidad has come to incubator.
   It was oracle internal, so they have already used it in their
 webapps.
  
   Apart from this, the usage of trinidad is emerging, also in some
   real-world web-apps.
  
   cheers,
  
   Gerald
  
   On 11/16/06, Aneesha Govil [EMAIL PROTECTED] wrote:
Is it alright to use Trinidad while it is still in the incubator?
   
Aneesha
   
On 11/16/06, Martin Marinschek  [EMAIL PROTECTED]
 wrote:
 He should definitely take the Trinidad component set for high
 performance requirements, with this, you're in the same region
 as
 Struts for performance (probably better - cause if you do it
 yourself,
 you won't get the same optimized state-saving as is implemented
 in
 Trinidad).

 regards,

 Martin

 On 11/15/06, Werner Punz [EMAIL PROTECTED] wrote:
  Ok, before anyone is falling down the chair because I ask this

  question.
  Here we go. A friend of mine is looking for a struts
 replacement
  framework covering extranet sites.
 
  Well here we go, my experience with jsf in the past is, that
 it was
  not
  too suitable for extranet, but is a perfect choice for
 intranet
  sites.
  The reason, higher overhead than plain lean frameworks only
 covering
  a
  minimalistic approach.
 
  The situation has changed however, facelets give a huge
 performance
  boost due to good caching.
  But I lack experience, I know several bigger intranet
 installations,
  but extranet is a fully different beast.
 
  So my question how good does jsf scale nowadays in those
 cases.
  Does anyone have any experience or samples?
 
 


 --

 http://www.irian.at

 Your JSF powerhouse -
 JSF Consulting, Development and
 Courses in English and German

 Professional Support for Apache MyFaces

   
   
  
  
   --
   http://www.irian.at
  
   Your JSF powerhouse -
   JSF Consulting, Development and
   Courses in English and German
  
   Professional Support for Apache MyFaces
  
 
 


 --
 Matthias Wessendorf
 http://tinyurl.com/fmywh

 further stuff:
 blog: http://jroller.com/page/mwessendorf
 mail: mwessendorf-at-gmail-dot-com





Re: general myfaces performance question

2006-11-16 Thread Aneesha Govil

I cannot subsribe to it. Get the following error:

This is an automatically generated Delivery Status Notification

Delivery to the following recipient failed permanently:

   [EMAIL PROTECTED]

Technical details of permanent failure:
PERM_FAILURE: SMTP Error (state 12): 552 spam score (5.5) exceeded threshold
snip

Any idea where I can get support on this?

Thanks,
Aneesha

On 11/16/06, Aneesha Govil [EMAIL PROTECTED] wrote:


Found it on the Wiki - [EMAIL PROTECTED]

Sometimes it's difficult to remember that wiki is more correct than the
website.

Thanks.
Aneesha

On 11/16/06, Aneesha Govil [EMAIL PROTECTED] wrote:

 Well how do I subscribe to the mailing list? The subscribe links aren't
 links here - 
http://incubator.apache.org/adffaces/trinidad-build/mail-lists.html


 Is it the standard [EMAIL PROTECTED]

 Thanks,
 Aneesha

 On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
 
  mailing list works, I am on
 
  check the trinidad wiki for nbuilds (from continuum)
 
  http://wiki.apache.org/myfaces/Trinidad
 
  On 11/16/06, Aneesha Govil  [EMAIL PROTECTED] wrote:
   Yes, I am aware of the Oracle connection. When I was evaluating what
  to use
   for my project, I could not find a download location anywhere on the
 
   incubator. Only source was available. The mailing list did not work
  either.
   It looked very useful from documentation et al.
  
   So how do I go about it if I want to use it? Anything like nightly
  builds
   and where can I find them?
  
   Thanks a lot.
   Regards,
   Aneesha
  
  
   On 11/16/06, Gerald Müllan  [EMAIL PROTECTED] wrote:
Sure, think about the history before trinidad has come to
  incubator.
It was oracle internal, so they have already used it in their
  webapps.
   
Apart from this, the usage of trinidad is emerging, also in some
real-world web-apps.
   
cheers,
   
Gerald
   
On 11/16/06, Aneesha Govil  [EMAIL PROTECTED] wrote:
 Is it alright to use Trinidad while it is still in the
  incubator?

 Aneesha

 On 11/16/06, Martin Marinschek  [EMAIL PROTECTED]
  wrote:
  He should definitely take the Trinidad component set for high
  performance requirements, with this, you're in the same region
  as
  Struts for performance (probably better - cause if you do it
  yourself,
  you won't get the same optimized state-saving as is
  implemented in
  Trinidad).
 
  regards,
 
  Martin
 
  On 11/15/06, Werner Punz [EMAIL PROTECTED] wrote:
   Ok, before anyone is falling down the chair because I ask
  this
   question.
   Here we go. A friend of mine is looking for a struts
  replacement
   framework covering extranet sites.
  
   Well here we go, my experience with jsf in the past is, that
  it was
   not
   too suitable for extranet, but is a perfect choice for
  intranet
   sites.
   The reason, higher overhead than plain lean frameworks only
  covering
   a
   minimalistic approach.
  
   The situation has changed however, facelets give a huge
  performance
   boost due to good caching.
   But I lack experience, I know several bigger intranet
  installations,
   but extranet is a fully different beast.
  
   So my question how good does jsf scale nowadays in those
  cases.
   Does anyone have any experience or samples?
  
  
 
 
  --
 
  http://www.irian.at
 
  Your JSF powerhouse -
  JSF Consulting, Development and
  Courses in English and German
 
  Professional Support for Apache MyFaces
 


   
   
--
http://www.irian.at
   
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
   
Professional Support for Apache MyFaces
   
  
  
 
 
  --
  Matthias Wessendorf
  http://tinyurl.com/fmywh
 
  further stuff:
  blog: http://jroller.com/page/mwessendorf
  mail: mwessendorf-at-gmail-dot-com
 





Re: general myfaces performance question

2006-11-16 Thread Matthias Wessendorf

:)
take it that way.
wiki is agil ... :)

On 11/16/06, Aneesha Govil [EMAIL PROTECTED] wrote:

Found it on the Wiki -
[EMAIL PROTECTED]

Sometimes it's difficult to remember that wiki is more correct than the
website.

Thanks.
Aneesha


On 11/16/06, Aneesha Govil [EMAIL PROTECTED] wrote:
 Well how do I subscribe to the mailing list? The subscribe links aren't
links here -
http://incubator.apache.org/adffaces/trinidad-build/mail-lists.html

 Is it the standard
[EMAIL PROTECTED]

 Thanks,
 Aneesha


 On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:

  mailing list works, I am on
 
  check the trinidad wiki for nbuilds (from continuum)
 
  http://wiki.apache.org/myfaces/Trinidad
 
  On 11/16/06, Aneesha Govil  [EMAIL PROTECTED] wrote:
   Yes, I am aware of the Oracle connection. When I was evaluating what
to use
   for my project, I could not find a download location anywhere on the
   incubator. Only source was available. The mailing list did not work
either.
   It looked very useful from documentation et al.
  
   So how do I go about it if I want to use it? Anything like nightly
builds
   and where can I find them?
  
   Thanks a lot.
   Regards,
   Aneesha
  
  
   On 11/16/06, Gerald Müllan  [EMAIL PROTECTED] wrote:
Sure, think about the history before trinidad has come to incubator.
It was oracle internal, so they have already used it in their
webapps.
   
Apart from this, the usage of trinidad is emerging, also in some
real-world web-apps.
   
cheers,
   
Gerald
   
On 11/16/06, Aneesha Govil  [EMAIL PROTECTED] wrote:
 Is it alright to use Trinidad while it is still in the incubator?

 Aneesha

 On 11/16/06, Martin Marinschek  [EMAIL PROTECTED]
wrote:
  He should definitely take the Trinidad component set for high
  performance requirements, with this, you're in the same region
as
  Struts for performance (probably better - cause if you do it
yourself,
  you won't get the same optimized state-saving as is implemented
in
  Trinidad).
 
  regards,
 
  Martin
 
  On 11/15/06, Werner Punz [EMAIL PROTECTED] wrote:
   Ok, before anyone is falling down the chair because I ask this
   question.
   Here we go. A friend of mine is looking for a struts
replacement
   framework covering extranet sites.
  
   Well here we go, my experience with jsf in the past is, that
it was
   not
   too suitable for extranet, but is a perfect choice for
intranet
   sites.
   The reason, higher overhead than plain lean frameworks only
covering
   a
   minimalistic approach.
  
   The situation has changed however, facelets give a huge
performance
   boost due to good caching.
   But I lack experience, I know several bigger intranet
installations,
   but extranet is a fully different beast.
  
   So my question how good does jsf scale nowadays in those
cases.
   Does anyone have any experience or samples?
  
  
 
 
  --
 
  http://www.irian.at
 
  Your JSF powerhouse -
  JSF Consulting, Development and
  Courses in English and German
 
  Professional Support for Apache MyFaces
 


   
   
--
http://www.irian.at
   
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
   
Professional Support for Apache MyFaces
   
  
  
 
 
  --
  Matthias Wessendorf
  http://tinyurl.com/fmywh
 
  further stuff:
  blog: http://jroller.com/page/mwessendorf
  mail: mwessendorf-at-gmail-dot-com
 







--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


AW: Tree2 - link problem

2006-11-16 Thread Schweighardt, Nicole
Hi,

yes, there is a JS-Error: f has no properties. F ist the form:
Here is the belonging function:

69 function clear_panelTabbedPane1_3Amytree_3Atreeform() {
70  var f = document.forms['panelTabbedPane1:mytree:treeform'];
71  f.elements['panelTabbedPane1:mytree:treeform:_link_hidden_'].value='';
72  f.target='';
73 }

It seems that it is not possible to get the treeform.

It ist here in my code, wrapping the tree.
...
f:subview id=mytree
h:form id=treeform

t:tree2 id=tree value=#{treeBean.treeData} var=node varNodeToggler=t

f:facet name=root
h:panelGroup id=rootgroup
h:outputText value=#{node.description} 
styleClass=nodeFolder title=#{node.description}/
...

But I don´t understand why f has no properties.

Nicki


-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
Matthias Wessendorf
Gesendet: Donnerstag, 16. November 2006 13:14
An: MyFaces Discussion
Betreff: Re: Tree2 - link problem


do you get js error instead (use firebug for checking that)

-M

On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
 Hi Matthias,

 thanks, that´s right, but unfortunately it wasn´t the reason.

 That is the whole jsp, which includes the tree.jsp

 tabbedPane.jsp
 %@ page session=false
 %%@ page contentType=text/html;charset=UTF-8 language=java %
 %@ taglib prefix=f uri=http://java.sun.com/jsf/core; %
 %@ taglib prefix=h uri=http://java.sun.com/jsf/html; %
 %@ taglib prefix=tiles uri=http://struts.apache.org/tags-tiles%
  %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t %

  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 head
 titlePrototype/title
link rel=stylesheet type=text/css href=%= request.getContextPath() 
 %/css/basic.css /
 /head
 body
 f:view
 f:subview id=panelTabbedPane1
 t:panelTabbedPane bgcolor=#CC 
 serverSideTabSwitch=false
 t:panelTab id=tab1 label=Process
 t:div id=treeDiv 
 style=color:red;width:250px;height:400px;background-color : 
 #99;float:left;
 f:verbatim
 tiles:insert 
 attribute=tree flush=false /
 /f:verbatim

 h:form
 //This commandLink works!!!
  h:commandLink 
 action=#{treeBean.showNested} id=testlink
 h:outputText 
 value=showNested/
 /h:commandLink
 f:verbatimbr/f:verbatim
 h:commandLink value=nested 
 Tiles action=nav_page4 id=_9 
 /h:commandLink
 /h:form
 ...

 Any Idea?
 Thank you very much,
 Nicki



 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
 Matthias Wessendorf
 Gesendet: Donnerstag, 16. November 2006 12:27
 An: MyFaces Discussion
 Betreff: Re: Tree2 - link problem


   context-param
 description
 Validate managed beans, navigation rules and ensure 
 that forms
 are not nested.
 /description
 param-nameorg.apache.myfaces.VALIDATE/param-name
 param-valuetrue/param-value
 /context-param

 On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
  Nicole,
 
  you are using formform//form
 
  nested forms are invalid html.
 
  since your tree2 is already wrapped by a form, remove the *wrapper*
  from the tree2-link.
 
  HTH,
  Matthias
 
  (MyFaces should tell you that, at least it is configurable)
  (RI is silent there ;))
 
  On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
   Hello,
  
   I have got a problem with the tree2 and links.
  
   I have a tree and some nodes are links. If  someone clicks on the link I 
   want to call a method in bean. But it does not work.
  
  
   Here is the code:
  
   tree.jsp
  
   f:subview id=mytree
   h:form id=treeform
  
   t:tree2 id=tree value=#{treeBean.treeData} var=node 
   varNodeToggler=t
  
   f:facet name=root
   h:panelGroup id=rootgroup
   h:outputText value=#{node.description} 
   styleClass=nodeFolder title=#{node.description}/
   /h:panelGroup
   /f:facet
   f:facet name=firstleaf
   h:panelGroup id=firstleafgroup
h:outputText value=#{node.description} 
   styleClass=nodeFolder/
   /h:panelGroup
   /f:facet
   f:facet name=secondLeaf 
   h:panelGroup id=secondleafgroup
  

Custom JSF navigation

2006-11-16 Thread Pfau, Oliver
Hi,
 
I have 2 JSF portlets. Click in portlet 1 stores an object in the
portlet session. The portlet 2 evalutes on each server-roundtrip the
object in the portlet session. I want to realize a portlet session
object sensitive portlet 2. E. g. when I click a link for a customer
object in portlet 1, the GUI for a customer should be visible in portlet
2. When I click in portlet 1 on a bill object a bill GUI is shown and so
on. I use a value binding in portlet 2 as trigger. There I want to use
instanceof operator and then change the navigation. How can I set an
outcome to show a jsp in portlet 2 ? It is not an action only a value
binding. Can this be done without a subclass of navigation handler ?
 
Thanks,
Oliver


Re: javax.servlet.ServletException: Client-id : _idJsp0 is duplicated in the faces tree.

2006-11-16 Thread behrangsa

Hi,

I think you are right, but how can I fix the behavior of the work
directory?

Regards,
Behi

Matthias Wessendorf-4 wrote:
 
 I am not sure,
 perhaps that is related to the work directory of tomcat ?
 
 
 On 11/16/06, behrangsa [EMAIL PROTECTED] wrote:

 Hi,

 When I modify a JSP (add/remove some children to a panelGrid,etc.) and
 press
 F5 to see the changes, I get the following exception in Tomcat 5.5.17 or
 5.5.20:

 javax.faces.FacesException: Client-id : _idJsp0 is duplicated in the
 faces
 tree. Component : _idJsp0, path: {Component-Path : [Class:
 javax.faces.component.UIViewRoot,ViewId: /position/index.jsp][Class:
 javax.faces.component.html.HtmlPanelGrid,Id: positionPane][Class:
 javax.faces.component.html.HtmlPanelGrid,Id: ositionTitlePane][Class:
 javax.faces.component.html.HtmlOutputText,Id: _idJsp0]}

 org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)

 org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)

 org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)

 The second time I press F5, everything starts working fine again. Any
 ideas
 how can I overcome this problem?

 Also, sometimes when I change the value attribute of an outputText and
 press
 F5 to see the changes, the changes are not reflected... any ideas what
 should I do to make these glitches go away?

 Regards,
 Behi
 --
 View this message in context:
 http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7370404
 Sent from the MyFaces - Users mailing list archive at Nabble.com.


 
 
 -- 
 Matthias Wessendorf
 http://tinyurl.com/fmywh
 
 further stuff:
 blog: http://jroller.com/page/mwessendorf
 mail: mwessendorf-at-gmail-dot-com
 
 

-- 
View this message in context: 
http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7376820
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Tree2 - link problem

2006-11-16 Thread Matthias Wessendorf

puh!

that is hard to debug from here.

Can you try to get the tree standalone running?
to avoid *confusion* with JS erros by tabbedPane ?

-M

On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:

Hi,

yes, there is a JS-Error: f has no properties. F ist the form:
Here is the belonging function:

69 function clear_panelTabbedPane1_3Amytree_3Atreeform() {
70  var f = document.forms['panelTabbedPane1:mytree:treeform'];
71  f.elements['panelTabbedPane1:mytree:treeform:_link_hidden_'].value='';
72  f.target='';
73 }

It seems that it is not possible to get the treeform.

It ist here in my code, wrapping the tree.
...
f:subview id=mytree
h:form id=treeform

t:tree2 id=tree value=#{treeBean.treeData} var=node varNodeToggler=t

f:facet name=root
h:panelGroup id=rootgroup
h:outputText value=#{node.description} 
styleClass=nodeFolder title=#{node.description}/
...

But I don´t understand why f has no properties.

Nicki


-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
Matthias Wessendorf
Gesendet: Donnerstag, 16. November 2006 13:14
An: MyFaces Discussion
Betreff: Re: Tree2 - link problem


do you get js error instead (use firebug for checking that)

-M

On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
 Hi Matthias,

 thanks, that´s right, but unfortunately it wasn´t the reason.

 That is the whole jsp, which includes the tree.jsp

 tabbedPane.jsp
 %@ page session=false
 %%@ page contentType=text/html;charset=UTF-8 language=java %
 %@ taglib prefix=f uri=http://java.sun.com/jsf/core; %
 %@ taglib prefix=h uri=http://java.sun.com/jsf/html; %
 %@ taglib prefix=tiles uri=http://struts.apache.org/tags-tiles%
  %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t %

  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 head
 titlePrototype/title
link rel=stylesheet type=text/css href=%= request.getContextPath() 
%/css/basic.css /
 /head
 body
 f:view
 f:subview id=panelTabbedPane1
 t:panelTabbedPane bgcolor=#CC 
serverSideTabSwitch=false
 t:panelTab id=tab1 label=Process
 t:div id=treeDiv 
style=color:red;width:250px;height:400px;background-color : #99;float:left;
 f:verbatim
 tiles:insert attribute=tree 
flush=false /
 /f:verbatim

 h:form
 //This commandLink works!!!
  h:commandLink 
action=#{treeBean.showNested} id=testlink
 h:outputText 
value=showNested/
 /h:commandLink
 f:verbatimbr/f:verbatim
 h:commandLink value=nested Tiles 
action=nav_page4 id=_9 
 /h:commandLink
 /h:form
 ...

 Any Idea?
 Thank you very much,
 Nicki



 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
 Matthias Wessendorf
 Gesendet: Donnerstag, 16. November 2006 12:27
 An: MyFaces Discussion
 Betreff: Re: Tree2 - link problem


   context-param
 description
 Validate managed beans, navigation rules and ensure 
that forms
 are not nested.
 /description
 param-nameorg.apache.myfaces.VALIDATE/param-name
 param-valuetrue/param-value
 /context-param

 On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
  Nicole,
 
  you are using formform//form
 
  nested forms are invalid html.
 
  since your tree2 is already wrapped by a form, remove the *wrapper*
  from the tree2-link.
 
  HTH,
  Matthias
 
  (MyFaces should tell you that, at least it is configurable)
  (RI is silent there ;))
 
  On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
   Hello,
  
   I have got a problem with the tree2 and links.
  
   I have a tree and some nodes are links. If  someone clicks on the link I 
want to call a method in bean. But it does not work.
  
  
   Here is the code:
  
   tree.jsp
  
   f:subview id=mytree
   h:form id=treeform
  
   t:tree2 id=tree value=#{treeBean.treeData} var=node 
varNodeToggler=t
  
   f:facet name=root
   h:panelGroup id=rootgroup
   h:outputText value=#{node.description} 
styleClass=nodeFolder title=#{node.description}/
   /h:panelGroup
   /f:facet
   f:facet name=firstleaf
   h:panelGroup id=firstleafgroup
h:outputText value=#{node.description} 

Re: javax.servlet.ServletException: Client-id : _idJsp0 is duplicated in the faces tree.

2006-11-16 Thread Matthias Wessendorf

ask the tomcat guys :)
(I use jetty for development)

On 11/16/06, behrangsa [EMAIL PROTECTED] wrote:


Hi,

I think you are right, but how can I fix the behavior of the work
directory?

Regards,
Behi

Matthias Wessendorf-4 wrote:

 I am not sure,
 perhaps that is related to the work directory of tomcat ?


 On 11/16/06, behrangsa [EMAIL PROTECTED] wrote:

 Hi,

 When I modify a JSP (add/remove some children to a panelGrid,etc.) and
 press
 F5 to see the changes, I get the following exception in Tomcat 5.5.17 or
 5.5.20:

 javax.faces.FacesException: Client-id : _idJsp0 is duplicated in the
 faces
 tree. Component : _idJsp0, path: {Component-Path : [Class:
 javax.faces.component.UIViewRoot,ViewId: /position/index.jsp][Class:
 javax.faces.component.html.HtmlPanelGrid,Id: positionPane][Class:
 javax.faces.component.html.HtmlPanelGrid,Id: ositionTitlePane][Class:
 javax.faces.component.html.HtmlOutputText,Id: _idJsp0]}

 
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)

 
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)

 org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)

 The second time I press F5, everything starts working fine again. Any
 ideas
 how can I overcome this problem?

 Also, sometimes when I change the value attribute of an outputText and
 press
 F5 to see the changes, the changes are not reflected... any ideas what
 should I do to make these glitches go away?

 Regards,
 Behi
 --
 View this message in context:
 
http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7370404
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




 --
 Matthias Wessendorf
 http://tinyurl.com/fmywh

 further stuff:
 blog: http://jroller.com/page/mwessendorf
 mail: mwessendorf-at-gmail-dot-com



--
View this message in context: 
http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7376820
Sent from the MyFaces - Users mailing list archive at Nabble.com.





--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: general myfaces performance question

2006-11-16 Thread Matthias Wessendorf

hrm,

strange. the apache infrastructure guys ?

On 11/16/06, Aneesha Govil [EMAIL PROTECTED] wrote:

I cannot subsribe to it. Get the following error:

This is an automatically generated Delivery Status Notification

 Delivery to the following recipient failed permanently:

 [EMAIL PROTECTED]

Technical details of permanent failure:
 PERM_FAILURE: SMTP Error (state 12): 552 spam score (5.5) exceeded
threshold
snip

Any idea where I can get support on this?


Thanks,
Aneesha

On 11/16/06, Aneesha Govil [EMAIL PROTECTED]  wrote:
 Found it on the Wiki -
[EMAIL PROTECTED]

 Sometimes it's difficult to remember that wiki is more correct than the
website.

 Thanks.
 Aneesha



 On 11/16/06, Aneesha Govil  [EMAIL PROTECTED] wrote:
  Well how do I subscribe to the mailing list? The subscribe links aren't
links here -
http://incubator.apache.org/adffaces/trinidad-build/mail-lists.html
 
  Is it the standard
[EMAIL PROTECTED]
 
  Thanks,
  Aneesha
 
 
  On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
 
   mailing list works, I am on
  
   check the trinidad wiki for nbuilds (from continuum)
  
   http://wiki.apache.org/myfaces/Trinidad
  
   On 11/16/06, Aneesha Govil  [EMAIL PROTECTED] wrote:
Yes, I am aware of the Oracle connection. When I was evaluating what
to use
for my project, I could not find a download location anywhere on the
incubator. Only source was available. The mailing list did not work
either.
It looked very useful from documentation et al.
   
So how do I go about it if I want to use it? Anything like nightly
builds
and where can I find them?
   
Thanks a lot.
Regards,
Aneesha
   
   
On 11/16/06, Gerald Müllan  [EMAIL PROTECTED] wrote:
 Sure, think about the history before trinidad has come to
incubator.
 It was oracle internal, so they have already used it in their
webapps.

 Apart from this, the usage of trinidad is emerging, also in some
 real-world web-apps.

 cheers,

 Gerald

 On 11/16/06, Aneesha Govil  [EMAIL PROTECTED] wrote:
  Is it alright to use Trinidad while it is still in the
incubator?
 
  Aneesha
 
  On 11/16/06, Martin Marinschek  [EMAIL PROTECTED]
wrote:
   He should definitely take the Trinidad component set for high
   performance requirements, with this, you're in the same region
as
   Struts for performance (probably better - cause if you do it
yourself,
   you won't get the same optimized state-saving as is
implemented in
   Trinidad).
  
   regards,
  
   Martin
  
   On 11/15/06, Werner Punz [EMAIL PROTECTED] wrote:
Ok, before anyone is falling down the chair because I ask
this
question.
Here we go. A friend of mine is looking for a struts
replacement
framework covering extranet sites.
   
Well here we go, my experience with jsf in the past is, that
it was
not
too suitable for extranet, but is a perfect choice for
intranet
sites.
The reason, higher overhead than plain lean frameworks only
covering
a
minimalistic approach.
   
The situation has changed however, facelets give a huge
performance
boost due to good caching.
But I lack experience, I know several bigger intranet
installations,
but extranet is a fully different beast.
   
So my question how good does jsf scale nowadays in those
cases.
Does anyone have any experience or samples?
   
   
  
  
   --
  
   http://www.irian.at
  
   Your JSF powerhouse -
   JSF Consulting, Development and
   Courses in English and German
  
   Professional Support for Apache MyFaces
  
 
 


 --
 http://www.irian.at

 Your JSF powerhouse -
 JSF Consulting, Development and
 Courses in English and German

 Professional Support for Apache MyFaces

   
   
  
  
   --
   Matthias Wessendorf
   http://tinyurl.com/fmywh
  
   further stuff:
   blog: http://jroller.com/page/mwessendorf
   mail: mwessendorf-at-gmail-dot-com
  
 
 







--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: javax.servlet.ServletException: Client-id : _idJsp0 is duplicated in the faces tree.

2006-11-16 Thread behrangsa

Hi again,

Even setting the keepgenerated init-param for the JSP to false won't fix the
problem.

(MyFace 1.1.3 Core + Tomcat 5.5.12)

Regards,
Behi



behrangsa wrote:
 
 Hi,
 
 I think you are right, but how can I fix the behavior of the work
 directory?
 
 Regards,
 Behi
 
 Matthias Wessendorf-4 wrote:
 
 I am not sure,
 perhaps that is related to the work directory of tomcat ?
 
 
 On 11/16/06, behrangsa [EMAIL PROTECTED] wrote:

 Hi,

 When I modify a JSP (add/remove some children to a panelGrid,etc.) and
 press
 F5 to see the changes, I get the following exception in Tomcat 5.5.17 or
 5.5.20:

 javax.faces.FacesException: Client-id : _idJsp0 is duplicated in the
 faces
 tree. Component : _idJsp0, path: {Component-Path : [Class:
 javax.faces.component.UIViewRoot,ViewId: /position/index.jsp][Class:
 javax.faces.component.html.HtmlPanelGrid,Id: positionPane][Class:
 javax.faces.component.html.HtmlPanelGrid,Id: ositionTitlePane][Class:
 javax.faces.component.html.HtmlOutputText,Id: _idJsp0]}

 org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)

 org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)

 org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)

 The second time I press F5, everything starts working fine again. Any
 ideas
 how can I overcome this problem?

 Also, sometimes when I change the value attribute of an outputText and
 press
 F5 to see the changes, the changes are not reflected... any ideas what
 should I do to make these glitches go away?

 Regards,
 Behi
 --
 View this message in context:
 http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7370404
 Sent from the MyFaces - Users mailing list archive at Nabble.com.


 
 
 -- 
 Matthias Wessendorf
 http://tinyurl.com/fmywh
 
 further stuff:
 blog: http://jroller.com/page/mwessendorf
 mail: mwessendorf-at-gmail-dot-com
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7376883
Sent from the MyFaces - Users mailing list archive at Nabble.com.



AW: Tree2 - link problem

2006-11-16 Thread Schweighardt, Nicole
Hi,

yes, it works standalone. 

I hope it is possible to put a tree into the tabbedPane-Tag? That is very 
important
for my application. 

Thank you.
Nicki

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
Matthias Wessendorf
Gesendet: Donnerstag, 16. November 2006 13:30
An: MyFaces Discussion
Betreff: Re: Tree2 - link problem


puh!

that is hard to debug from here.

Can you try to get the tree standalone running?
to avoid *confusion* with JS erros by tabbedPane ?

-M

On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
 Hi,

 yes, there is a JS-Error: f has no properties. F ist the form:
 Here is the belonging function:

 69 function clear_panelTabbedPane1_3Amytree_3Atreeform() {
 70  var f = document.forms['panelTabbedPane1:mytree:treeform'];
 71  f.elements['panelTabbedPane1:mytree:treeform:_link_hidden_'].value='';
 72  f.target='';
 73 }

 It seems that it is not possible to get the treeform.

 It ist here in my code, wrapping the tree.
 ...
 f:subview id=mytree
 h:form id=treeform

 t:tree2 id=tree value=#{treeBean.treeData} var=node varNodeToggler=t

 f:facet name=root
 h:panelGroup id=rootgroup
 h:outputText value=#{node.description} 
 styleClass=nodeFolder title=#{node.description}/
 ...

 But I don´t understand why f has no properties.

 Nicki


 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
 Matthias Wessendorf
 Gesendet: Donnerstag, 16. November 2006 13:14
 An: MyFaces Discussion
 Betreff: Re: Tree2 - link problem


 do you get js error instead (use firebug for checking that)

 -M

 On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
  Hi Matthias,
 
  thanks, that´s right, but unfortunately it wasn´t the reason.
 
  That is the whole jsp, which includes the tree.jsp
 
  tabbedPane.jsp
  %@ page session=false
  %%@ page contentType=text/html;charset=UTF-8 language=java %
  %@ taglib prefix=f uri=http://java.sun.com/jsf/core; %
  %@ taglib prefix=h uri=http://java.sun.com/jsf/html; %
  %@ taglib prefix=tiles uri=http://struts.apache.org/tags-tiles%
   %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t %
 
   !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
  head
  titlePrototype/title
 link rel=stylesheet type=text/css href=%= 
  request.getContextPath() %/css/basic.css /
  /head
  body
  f:view
  f:subview id=panelTabbedPane1
  t:panelTabbedPane bgcolor=#CC 
  serverSideTabSwitch=false
  t:panelTab id=tab1 label=Process
  t:div id=treeDiv 
  style=color:red;width:250px;height:400px;background-color : 
  #99;float:left;
  f:verbatim
  tiles:insert 
  attribute=tree flush=false /
  /f:verbatim
 
  h:form
  //This commandLink works!!!
   h:commandLink 
  action=#{treeBean.showNested} id=testlink
  h:outputText 
  value=showNested/
  /h:commandLink
  
  f:verbatimbr/f:verbatim
  h:commandLink 
  value=nested Tiles action=nav_page4 id=_9 
  /h:commandLink
  /h:form
  ...
 
  Any Idea?
  Thank you very much,
  Nicki
 
 
 
  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
  Matthias Wessendorf
  Gesendet: Donnerstag, 16. November 2006 12:27
  An: MyFaces Discussion
  Betreff: Re: Tree2 - link problem
 
 
context-param
  description
  Validate managed beans, navigation rules and ensure 
  that forms
  are not nested.
  /description
  param-nameorg.apache.myfaces.VALIDATE/param-name
  param-valuetrue/param-value
  /context-param
 
  On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
   Nicole,
  
   you are using formform//form
  
   nested forms are invalid html.
  
   since your tree2 is already wrapped by a form, remove the *wrapper*
   from the tree2-link.
  
   HTH,
   Matthias
  
   (MyFaces should tell you that, at least it is configurable)
   (RI is silent there ;))
  
   On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
Hello,
   
I have got a problem with the tree2 and links.
   
I have a tree and some nodes are links. If  someone clicks on the link 
I want to call a method in bean. But it does not work.
   
   
Here is the code:
   
tree.jsp
   
f:subview 

Re: Tree2 - link problem

2006-11-16 Thread Matthias Wessendorf

On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:

Hi,

yes, it works standalone.


ok, that is good.

now let's move to the next step.

can you nest something less complex inside the tabbedPane?
a damn simple form ? just for the case ?




I hope it is possible to put a tree into the tabbedPane-Tag? That is very 
important
for my application.

Thank you.
Nicki

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
Matthias Wessendorf
Gesendet: Donnerstag, 16. November 2006 13:30
An: MyFaces Discussion
Betreff: Re: Tree2 - link problem


puh!

that is hard to debug from here.

Can you try to get the tree standalone running?
to avoid *confusion* with JS erros by tabbedPane ?

-M

On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
 Hi,

 yes, there is a JS-Error: f has no properties. F ist the form:
 Here is the belonging function:

 69 function clear_panelTabbedPane1_3Amytree_3Atreeform() {
 70  var f = document.forms['panelTabbedPane1:mytree:treeform'];
 71  f.elements['panelTabbedPane1:mytree:treeform:_link_hidden_'].value='';
 72  f.target='';
 73 }

 It seems that it is not possible to get the treeform.

 It ist here in my code, wrapping the tree.
 ...
 f:subview id=mytree
 h:form id=treeform

 t:tree2 id=tree value=#{treeBean.treeData} var=node varNodeToggler=t

 f:facet name=root
 h:panelGroup id=rootgroup
 h:outputText value=#{node.description} 
styleClass=nodeFolder title=#{node.description}/
 ...

 But I don´t understand why f has no properties.

 Nicki


 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
 Matthias Wessendorf
 Gesendet: Donnerstag, 16. November 2006 13:14
 An: MyFaces Discussion
 Betreff: Re: Tree2 - link problem


 do you get js error instead (use firebug for checking that)

 -M

 On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
  Hi Matthias,
 
  thanks, that´s right, but unfortunately it wasn´t the reason.
 
  That is the whole jsp, which includes the tree.jsp
 
  tabbedPane.jsp
  %@ page session=false
  %%@ page contentType=text/html;charset=UTF-8 language=java %
  %@ taglib prefix=f uri=http://java.sun.com/jsf/core; %
  %@ taglib prefix=h uri=http://java.sun.com/jsf/html; %
  %@ taglib prefix=tiles uri=http://struts.apache.org/tags-tiles%
   %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t %
 
   !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
  head
  titlePrototype/title
 link rel=stylesheet type=text/css href=%= request.getContextPath() 
%/css/basic.css /
  /head
  body
  f:view
  f:subview id=panelTabbedPane1
  t:panelTabbedPane bgcolor=#CC 
serverSideTabSwitch=false
  t:panelTab id=tab1 label=Process
  t:div id=treeDiv 
style=color:red;width:250px;height:400px;background-color : #99;float:left;
  f:verbatim
  tiles:insert attribute=tree 
flush=false /
  /f:verbatim
 
  h:form
  //This commandLink works!!!
   h:commandLink 
action=#{treeBean.showNested} id=testlink
  h:outputText 
value=showNested/
  /h:commandLink
  
f:verbatimbr/f:verbatim
  h:commandLink value=nested Tiles 
action=nav_page4 id=_9 
  /h:commandLink
  /h:form
  ...
 
  Any Idea?
  Thank you very much,
  Nicki
 
 
 
  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
  Matthias Wessendorf
  Gesendet: Donnerstag, 16. November 2006 12:27
  An: MyFaces Discussion
  Betreff: Re: Tree2 - link problem
 
 
context-param
  description
  Validate managed beans, navigation rules and ensure 
that forms
  are not nested.
  /description
  param-nameorg.apache.myfaces.VALIDATE/param-name
  param-valuetrue/param-value
  /context-param
 
  On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
   Nicole,
  
   you are using formform//form
  
   nested forms are invalid html.
  
   since your tree2 is already wrapped by a form, remove the *wrapper*
   from the tree2-link.
  
   HTH,
   Matthias
  
   (MyFaces should tell you that, at least it is configurable)
   (RI is silent there ;))
  
   On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
Hello,
   
I have got a problem with the tree2 and links.
   
I have a 

Re: javax.servlet.ServletException: Client-id : _idJsp0 is duplicated in the faces tree.

2006-11-16 Thread Matthias Wessendorf

can you try latest tomcat?
I am not really sure about that, but worth a try, right ?

On 11/16/06, behrangsa [EMAIL PROTECTED] wrote:


Hi again,

Even setting the keepgenerated init-param for the JSP to false won't fix the
problem.

(MyFace 1.1.3 Core + Tomcat 5.5.12)

Regards,
Behi



behrangsa wrote:

 Hi,

 I think you are right, but how can I fix the behavior of the work
 directory?

 Regards,
 Behi

 Matthias Wessendorf-4 wrote:

 I am not sure,
 perhaps that is related to the work directory of tomcat ?


 On 11/16/06, behrangsa [EMAIL PROTECTED] wrote:

 Hi,

 When I modify a JSP (add/remove some children to a panelGrid,etc.) and
 press
 F5 to see the changes, I get the following exception in Tomcat 5.5.17 or
 5.5.20:

 javax.faces.FacesException: Client-id : _idJsp0 is duplicated in the
 faces
 tree. Component : _idJsp0, path: {Component-Path : [Class:
 javax.faces.component.UIViewRoot,ViewId: /position/index.jsp][Class:
 javax.faces.component.html.HtmlPanelGrid,Id: positionPane][Class:
 javax.faces.component.html.HtmlPanelGrid,Id: ositionTitlePane][Class:
 javax.faces.component.html.HtmlOutputText,Id: _idJsp0]}

 
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)

 
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)

 org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)

 The second time I press F5, everything starts working fine again. Any
 ideas
 how can I overcome this problem?

 Also, sometimes when I change the value attribute of an outputText and
 press
 F5 to see the changes, the changes are not reflected... any ideas what
 should I do to make these glitches go away?

 Regards,
 Behi
 --
 View this message in context:
 
http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7370404
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




 --
 Matthias Wessendorf
 http://tinyurl.com/fmywh

 further stuff:
 blog: http://jroller.com/page/mwessendorf
 mail: mwessendorf-at-gmail-dot-com





--
View this message in context: 
http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7376883
Sent from the MyFaces - Users mailing list archive at Nabble.com.





--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: javax.servlet.ServletException: Client-id : _idJsp0 is duplicated in the faces tree.

2006-11-16 Thread Matthias Wessendorf

the latest 5.5.xx
(not 6.xxx)

On 11/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:

can you try latest tomcat?
I am not really sure about that, but worth a try, right ?

On 11/16/06, behrangsa [EMAIL PROTECTED] wrote:

 Hi again,

 Even setting the keepgenerated init-param for the JSP to false won't fix the
 problem.

 (MyFace 1.1.3 Core + Tomcat 5.5.12)

 Regards,
 Behi



 behrangsa wrote:
 
  Hi,
 
  I think you are right, but how can I fix the behavior of the work
  directory?
 
  Regards,
  Behi
 
  Matthias Wessendorf-4 wrote:
 
  I am not sure,
  perhaps that is related to the work directory of tomcat ?
 
 
  On 11/16/06, behrangsa [EMAIL PROTECTED] wrote:
 
  Hi,
 
  When I modify a JSP (add/remove some children to a panelGrid,etc.) and
  press
  F5 to see the changes, I get the following exception in Tomcat 5.5.17 or
  5.5.20:
 
  javax.faces.FacesException: Client-id : _idJsp0 is duplicated in the
  faces
  tree. Component : _idJsp0, path: {Component-Path : [Class:
  javax.faces.component.UIViewRoot,ViewId: /position/index.jsp][Class:
  javax.faces.component.html.HtmlPanelGrid,Id: positionPane][Class:
  javax.faces.component.html.HtmlPanelGrid,Id: ositionTitlePane][Class:
  javax.faces.component.html.HtmlOutputText,Id: _idJsp0]}
 
  
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)
 
  
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
 
  org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
  javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
 
  The second time I press F5, everything starts working fine again. Any
  ideas
  how can I overcome this problem?
 
  Also, sometimes when I change the value attribute of an outputText and
  press
  F5 to see the changes, the changes are not reflected... any ideas what
  should I do to make these glitches go away?
 
  Regards,
  Behi
  --
  View this message in context:
  
http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7370404
  Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 
 
 
  --
  Matthias Wessendorf
  http://tinyurl.com/fmywh
 
  further stuff:
  blog: http://jroller.com/page/mwessendorf
  mail: mwessendorf-at-gmail-dot-com
 
 
 
 

 --
 View this message in context: 
http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7376883
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com




--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


AW: Tree2 - link problem

2006-11-16 Thread Schweighardt, Nicole
HI,

yes, there is a form in the tabbedPane with a link; the same link, that was in 
the 
tree. And it works!

t:panelTabbedPane bgcolor=#CC serverSideTabSwitch=false
t:panelTab id=tab1 label=Process
t:div id=treeDiv

style=color:red;width:250px;height:400px;background-color : 
#99;float:left;
//normally here´s the insert tag for 
the tree.jsp

//This link works! It is in the first 
tab of the panelTabbedPane
h:form
h:commandLink action=diversification
h:outputText 
value=Diversification /
/h:commandLink
...

Nicki


-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
Matthias Wessendorf
Gesendet: Donnerstag, 16. November 2006 13:46
An: MyFaces Discussion
Betreff: Re: Tree2 - link problem


On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
 Hi,

 yes, it works standalone.

ok, that is good.

now let's move to the next step.

can you nest something less complex inside the tabbedPane?
a damn simple form ? just for the case ?



 I hope it is possible to put a tree into the tabbedPane-Tag? That is very 
 important
 for my application.

 Thank you.
 Nicki

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
 Matthias Wessendorf
 Gesendet: Donnerstag, 16. November 2006 13:30
 An: MyFaces Discussion
 Betreff: Re: Tree2 - link problem


 puh!

 that is hard to debug from here.

 Can you try to get the tree standalone running?
 to avoid *confusion* with JS erros by tabbedPane ?

 -M

 On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
  Hi,
 
  yes, there is a JS-Error: f has no properties. F ist the form:
  Here is the belonging function:
 
  69 function clear_panelTabbedPane1_3Amytree_3Atreeform() {
  70  var f = document.forms['panelTabbedPane1:mytree:treeform'];
  71  f.elements['panelTabbedPane1:mytree:treeform:_link_hidden_'].value='';
  72  f.target='';
  73 }
 
  It seems that it is not possible to get the treeform.
 
  It ist here in my code, wrapping the tree.
  ...
  f:subview id=mytree
  h:form id=treeform
 
  t:tree2 id=tree value=#{treeBean.treeData} var=node 
  varNodeToggler=t
 
  f:facet name=root
  h:panelGroup id=rootgroup
  h:outputText value=#{node.description} 
  styleClass=nodeFolder title=#{node.description}/
  ...
 
  But I don´t understand why f has no properties.
 
  Nicki
 
 
  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
  Matthias Wessendorf
  Gesendet: Donnerstag, 16. November 2006 13:14
  An: MyFaces Discussion
  Betreff: Re: Tree2 - link problem
 
 
  do you get js error instead (use firebug for checking that)
 
  -M
 
  On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
   Hi Matthias,
  
   thanks, that´s right, but unfortunately it wasn´t the reason.
  
   That is the whole jsp, which includes the tree.jsp
  
   tabbedPane.jsp
   %@ page session=false
   %%@ page contentType=text/html;charset=UTF-8 language=java %
   %@ taglib prefix=f uri=http://java.sun.com/jsf/core; %
   %@ taglib prefix=h uri=http://java.sun.com/jsf/html; %
   %@ taglib prefix=tiles uri=http://struts.apache.org/tags-tiles%
%@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t %
  
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
   head
   titlePrototype/title
  link rel=stylesheet type=text/css href=%= 
   request.getContextPath() %/css/basic.css /
   /head
   body
   f:view
   f:subview id=panelTabbedPane1
   t:panelTabbedPane bgcolor=#CC 
   serverSideTabSwitch=false
   t:panelTab id=tab1 label=Process
   t:div id=treeDiv 
   style=color:red;width:250px;height:400px;background-color : 
   #99;float:left;
   f:verbatim
   tiles:insert 
   attribute=tree flush=false /
   /f:verbatim
  
   h:form
   //This commandLink 
   works!!!
h:commandLink 
   action=#{treeBean.showNested} id=testlink
   h:outputText 
   value=showNested/
   /h:commandLink
   
   f:verbatimbr/f:verbatim
   

Re: javax.servlet.ServletException: Client-id : _idJsp0 is duplicated in the faces tree.

2006-11-16 Thread Martin Marinschek

Hi Behi,

the first issue you are seeing is due to the fact that if you change
the JSP-page-hierarchy, JSF doesn't know anymore which id it should
assign to which component. This problem can be fixed by either
switching to facelets or JSF1.2 (in 1.2, the container provides the
id's per tag, I hope that with this direct link there will be no
problem in adding another tag - haven't tried it yet, though).

For the second issue, are you using direct value=myvalue attributes
or value-binding as in value=#{test.myValue}?

Properties are not reloaded on every request, if they are set as a
hard-coded string. Look at the following code-snippet to see how the
component is created on a new page and reused on an existing page:

   _componentInstance = findComponent(parent,id);
   if (_componentInstance == null)
   {
   _componentInstance = createComponentInstance(context, id);
   setProperties(_componentInstance);
   int index = getAddedChildrenCount(parentTag);
   List children = parent.getChildren();
   if (index = children.size())
   {
   children.add(index, _componentInstance);
   }
   else
   {
   throw new FacesException(cannot add component);
   }
   }


regards,

Martin

On 11/16/06, behrangsa [EMAIL PROTECTED] wrote:


Hi,

When I modify a JSP (add/remove some children to a panelGrid,etc.) and press
F5 to see the changes, I get the following exception in Tomcat 5.5.17 or
5.5.20:

javax.faces.FacesException: Client-id : _idJsp0 is duplicated in the faces
tree. Component : _idJsp0, path: {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /position/index.jsp][Class:
javax.faces.component.html.HtmlPanelGrid,Id: positionPane][Class:
javax.faces.component.html.HtmlPanelGrid,Id: ositionTitlePane][Class:
javax.faces.component.html.HtmlOutputText,Id: _idJsp0]}

org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)

org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)

org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)

The second time I press F5, everything starts working fine again. Any ideas
how can I overcome this problem?

Also, sometimes when I change the value attribute of an outputText and press
F5 to see the changes, the changes are not reflected... any ideas what
should I do to make these glitches go away?

Regards,
Behi
--
View this message in context: 
http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7370404
Sent from the MyFaces - Users mailing list archive at Nabble.com.





--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


Re: Tree2 - link problem

2006-11-16 Thread Matthias Wessendorf

what is rendered for the treeform

form id=??? name=??? ...


can you provide the complete JSPs and JavaBeans ?
(or a small WAR file, which contains the project?)
 (can send it offline to me directly)

-M

On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:

HI,

yes, there is a form in the tabbedPane with a link; the same link, that was in 
the
tree. And it works!

t:panelTabbedPane bgcolor=#CC serverSideTabSwitch=false
t:panelTab id=tab1 label=Process
t:div id=treeDiv

style=color:red;width:250px;height:400px;background-color : 
#99;float:left;
//normally here´s the insert tag for 
the tree.jsp

//This link works! It is in the first 
tab of the panelTabbedPane
h:form
h:commandLink action=diversification
h:outputText 
value=Diversification /
/h:commandLink
...

Nicki


-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
Matthias Wessendorf
Gesendet: Donnerstag, 16. November 2006 13:46
An: MyFaces Discussion
Betreff: Re: Tree2 - link problem


On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
 Hi,

 yes, it works standalone.

ok, that is good.

now let's move to the next step.

can you nest something less complex inside the tabbedPane?
a damn simple form ? just for the case ?



 I hope it is possible to put a tree into the tabbedPane-Tag? That is very 
important
 for my application.

 Thank you.
 Nicki

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
 Matthias Wessendorf
 Gesendet: Donnerstag, 16. November 2006 13:30
 An: MyFaces Discussion
 Betreff: Re: Tree2 - link problem


 puh!

 that is hard to debug from here.

 Can you try to get the tree standalone running?
 to avoid *confusion* with JS erros by tabbedPane ?

 -M

 On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
  Hi,
 
  yes, there is a JS-Error: f has no properties. F ist the form:
  Here is the belonging function:
 
  69 function clear_panelTabbedPane1_3Amytree_3Atreeform() {
  70  var f = document.forms['panelTabbedPane1:mytree:treeform'];
  71  f.elements['panelTabbedPane1:mytree:treeform:_link_hidden_'].value='';
  72  f.target='';
  73 }
 
  It seems that it is not possible to get the treeform.
 
  It ist here in my code, wrapping the tree.
  ...
  f:subview id=mytree
  h:form id=treeform
 
  t:tree2 id=tree value=#{treeBean.treeData} var=node 
varNodeToggler=t
 
  f:facet name=root
  h:panelGroup id=rootgroup
  h:outputText value=#{node.description} 
styleClass=nodeFolder title=#{node.description}/
  ...
 
  But I don´t understand why f has no properties.
 
  Nicki
 
 
  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von
  Matthias Wessendorf
  Gesendet: Donnerstag, 16. November 2006 13:14
  An: MyFaces Discussion
  Betreff: Re: Tree2 - link problem
 
 
  do you get js error instead (use firebug for checking that)
 
  -M
 
  On 11/16/06, Schweighardt, Nicole [EMAIL PROTECTED] wrote:
   Hi Matthias,
  
   thanks, that´s right, but unfortunately it wasn´t the reason.
  
   That is the whole jsp, which includes the tree.jsp
  
   tabbedPane.jsp
   %@ page session=false
   %%@ page contentType=text/html;charset=UTF-8 language=java %
   %@ taglib prefix=f uri=http://java.sun.com/jsf/core; %
   %@ taglib prefix=h uri=http://java.sun.com/jsf/html; %
   %@ taglib prefix=tiles uri=http://struts.apache.org/tags-tiles%
%@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t %
  
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
   head
   titlePrototype/title
  link rel=stylesheet type=text/css href=%= request.getContextPath() 
%/css/basic.css /
   /head
   body
   f:view
   f:subview id=panelTabbedPane1
   t:panelTabbedPane bgcolor=#CC 
serverSideTabSwitch=false
   t:panelTab id=tab1 label=Process
   t:div id=treeDiv 
style=color:red;width:250px;height:400px;background-color : #99;float:left;
   f:verbatim
   tiles:insert attribute=tree 
flush=false /
   /f:verbatim
  
   h:form
   //This commandLink 
works!!!
h:commandLink 
action=#{treeBean.showNested} id=testlink
   h:outputText 
value=showNested/
 

Re: javax.servlet.ServletException: Client-id : _idJsp0 is duplicated in the faces tree.

2006-11-16 Thread behrangsa

Hi Martin,

Thanks for the explanation. I think I'll switch to Facelets and then
completely to JSF 1.2 and Facelets on Glassfish (I think it should be
impossible/difficult to get JSF 1.2 working in Tomcat as it requires a JSP
2.5 compliant container). Also is MyFaces, JSF 1.2 compliant?

BTW - Wouldn't it work if there was a MyFaces init param that we could set
so that the component hierarchy and the ids assigned to them were
recalculated on every request? Not efficient, but a life saver for
development time...

Regards,
Behi


Martin Marinschek wrote:
 
 Hi Behi,
 
 the first issue you are seeing is due to the fact that if you change
 the JSP-page-hierarchy, JSF doesn't know anymore which id it should
 assign to which component. This problem can be fixed by either
 switching to facelets or JSF1.2 (in 1.2, the container provides the
 id's per tag, I hope that with this direct link there will be no
 problem in adding another tag - haven't tried it yet, though).
 
 For the second issue, are you using direct value=myvalue attributes
 or value-binding as in value=#{test.myValue}?
 
 Properties are not reloaded on every request, if they are set as a
 hard-coded string. Look at the following code-snippet to see how the
 component is created on a new page and reused on an existing page:
 
 _componentInstance = findComponent(parent,id);
 if (_componentInstance == null)
 {
 _componentInstance = createComponentInstance(context, id);
 setProperties(_componentInstance);
 int index = getAddedChildrenCount(parentTag);
 List children = parent.getChildren();
 if (index = children.size())
 {
 children.add(index, _componentInstance);
 }
 else
 {
 throw new FacesException(cannot add component);
 }
 }
 
 
 regards,
 
 Martin
 
 On 11/16/06, behrangsa [EMAIL PROTECTED] wrote:

 Hi,

 When I modify a JSP (add/remove some children to a panelGrid,etc.) and
 press
 F5 to see the changes, I get the following exception in Tomcat 5.5.17 or
 5.5.20:

 javax.faces.FacesException: Client-id : _idJsp0 is duplicated in the
 faces
 tree. Component : _idJsp0, path: {Component-Path : [Class:
 javax.faces.component.UIViewRoot,ViewId: /position/index.jsp][Class:
 javax.faces.component.html.HtmlPanelGrid,Id: positionPane][Class:
 javax.faces.component.html.HtmlPanelGrid,Id: ositionTitlePane][Class:
 javax.faces.component.html.HtmlOutputText,Id: _idJsp0]}

 org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)

 org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)

 org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)

 The second time I press F5, everything starts working fine again. Any
 ideas
 how can I overcome this problem?

 Also, sometimes when I change the value attribute of an outputText and
 press
 F5 to see the changes, the changes are not reflected... any ideas what
 should I do to make these glitches go away?

 Regards,
 Behi
 --
 View this message in context:
 http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7370404
 Sent from the MyFaces - Users mailing list archive at Nabble.com.


 
 
 -- 
 
 http://www.irian.at
 
 Your JSF powerhouse -
 JSF Consulting, Development and
 Courses in English and German
 
 Professional Support for Apache MyFaces
 
 

-- 
View this message in context: 
http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7377326
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: javax.servlet.ServletException: Client-id : _idJsp0 is duplicated in the faces tree.

2006-11-16 Thread Matthias Wessendorf

tomcat 6 is jsp 2.1
and servlet 2.5

myfaces 1.2 will be done q1 2007

On 11/16/06, behrangsa [EMAIL PROTECTED] wrote:


Hi Martin,

Thanks for the explanation. I think I'll switch to Facelets and then
completely to JSF 1.2 and Facelets on Glassfish (I think it should be
impossible/difficult to get JSF 1.2 working in Tomcat as it requires a JSP
2.5 compliant container). Also is MyFaces, JSF 1.2 compliant?

BTW - Wouldn't it work if there was a MyFaces init param that we could set
so that the component hierarchy and the ids assigned to them were
recalculated on every request? Not efficient, but a life saver for
development time...

Regards,
Behi


Martin Marinschek wrote:

 Hi Behi,

 the first issue you are seeing is due to the fact that if you change
 the JSP-page-hierarchy, JSF doesn't know anymore which id it should
 assign to which component. This problem can be fixed by either
 switching to facelets or JSF1.2 (in 1.2, the container provides the
 id's per tag, I hope that with this direct link there will be no
 problem in adding another tag - haven't tried it yet, though).

 For the second issue, are you using direct value=myvalue attributes
 or value-binding as in value=#{test.myValue}?

 Properties are not reloaded on every request, if they are set as a
 hard-coded string. Look at the following code-snippet to see how the
 component is created on a new page and reused on an existing page:

 _componentInstance = findComponent(parent,id);
 if (_componentInstance == null)
 {
 _componentInstance = createComponentInstance(context, id);
 setProperties(_componentInstance);
 int index = getAddedChildrenCount(parentTag);
 List children = parent.getChildren();
 if (index = children.size())
 {
 children.add(index, _componentInstance);
 }
 else
 {
 throw new FacesException(cannot add component);
 }
 }


 regards,

 Martin

 On 11/16/06, behrangsa [EMAIL PROTECTED] wrote:

 Hi,

 When I modify a JSP (add/remove some children to a panelGrid,etc.) and
 press
 F5 to see the changes, I get the following exception in Tomcat 5.5.17 or
 5.5.20:

 javax.faces.FacesException: Client-id : _idJsp0 is duplicated in the
 faces
 tree. Component : _idJsp0, path: {Component-Path : [Class:
 javax.faces.component.UIViewRoot,ViewId: /position/index.jsp][Class:
 javax.faces.component.html.HtmlPanelGrid,Id: positionPane][Class:
 javax.faces.component.html.HtmlPanelGrid,Id: ositionTitlePane][Class:
 javax.faces.component.html.HtmlOutputText,Id: _idJsp0]}

 
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)

 
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)

 org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)

 The second time I press F5, everything starts working fine again. Any
 ideas
 how can I overcome this problem?

 Also, sometimes when I change the value attribute of an outputText and
 press
 F5 to see the changes, the changes are not reflected... any ideas what
 should I do to make these glitches go away?

 Regards,
 Behi
 --
 View this message in context:
 
http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7370404
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




 --

 http://www.irian.at

 Your JSF powerhouse -
 JSF Consulting, Development and
 Courses in English and German

 Professional Support for Apache MyFaces



--
View this message in context: 
http://www.nabble.com/javax.servlet.ServletException%3A-Client-id-%3A-_idJsp0-is-duplicated-in-the-faces-tree.-tf2640305.html#a7377326
Sent from the MyFaces - Users mailing list archive at Nabble.com.





--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


MyFaces 1.1.5 and state issue

2006-11-16 Thread Rogerio Pereira

Hi guys!

I build myfaces 1.1.5 today from svn and not i'm getting this error:

No serialized component state found in client request!

Is there a way to fix this?

--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


Session destroyed when redeploying MyFaces Web-App

2006-11-16 Thread janw

Hello,

we have a problem when redeploying our webapp:
All sessions are destroyed.

It once worked that the session were kept over a new deployment of the
webapp, 
but since a few weeks (and IMO nothing has changed significantly) the
sessions expire.

I tried already the distributable/ tag in web.xml to enforce all
attributes to be serializable.

We use MyFaces 1.1.4, deployed in a Tomcat 5.5.15.
I don't know where to look for the reason...

Regards
Jan

-- 
View this message in context: 
http://www.nabble.com/Session-destroyed-when-redeploying-MyFaces-Web-App-tf2642928.html#a7377513
Sent from the MyFaces - Users mailing list archive at Nabble.com.



help : url problem

2006-11-16 Thread Mr Arvind Pandey
Hi all!

   I m using tiles with my application. everything is
fine but url of the browser always shows the previous
url. I have used meta tag with http-equi attrbute to
refresh the current page after a time interval. 
   But problem is that the url of browser contains the
url of previously accessed page and hence it refreshes
the previous page when the time interval is over. 

   Any help pls
regards...
Arvind 




__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/


Re: [Tomahawk] Popup don't work

2006-11-16 Thread Christian Wiesing
I use several filters in the application, but the other filters 
shouldn't affect the MyFaces-ExtensionsFilter.


Filters in the web.xml:
   filter
   filter-nameHiveMindFilter/filter-name
 
filter-classde.application.service.impl.HiveMindFilterExt/filter-class

   /filter

   filter-mapping
   filter-nameHiveMindFilter/filter-name
   url-pattern*.do/url-pattern
   dispatcherREQUEST/dispatcher
   /filter-mapping

   filter
   filter-nameResponseOverrideFilter/filter-name
   
filter-classorg.displaytag.filter.ResponseOverrideFilter/filter-class

 /filter
filter-mapping
   filter-nameResponseOverrideFilter/filter-name
   url-pattern*.do/url-pattern
 /filter-mapping

 filter
   filter-nameMyFacesExtensionsFilter/filter-name
   
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class

   init-param
   param-nameuploadMaxFileSize/param-name
   param-value100m/param-value
   /init-param
   init-param
   param-nameuploadThresholdSize/param-name
   param-value100k/param-value
   /init-param
   /filter

   filter-mapping
   filter-nameMyFacesExtensionsFilter/filter-name
   servlet-nameFaces Servlet/servlet-name
   /filter-mapping
   filter-mapping
   filter-nameMyFacesExtensionsFilter/filter-name
   url-pattern*.faces/url-pattern
   /filter-mapping
   filter-mapping
   filter-nameMyFacesExtensionsFilter/filter-name
   url-pattern*.jsf/url-pattern
   /filter-mapping
   filter-mapping
   filter-nameMyFacesExtensionsFilter/filter-name
   url-pattern*.jsp/url-pattern
   /filter-mapping
   filter-mapping
   filter-nameMyFacesExtensionsFilter/filter-name
   url-pattern/faces/*/url-pattern
   /filter-mapping

Gerald Müllan schrieb:

Hi,

well, i use t:popUp the same way like you with the latest build and it 
works.


Some problems with extensionsFilter?

Here is the snippet:

t:popup styleClass=popup
closePopupOnExitingElement=true
closePopupOnExitingPopup=true
displayAtDistanceX=10
displayAtDistanceY=10 
   h:panelGrid  columns=2
   h:graphicImage 
url=/images/ico_link_cs.gif/

   h:outputText
value=#{sessionBean.recentInstantMessage.header}
 style=padding-right:15px;/
   /h:panelGrid
   f:facet name=popup
   h:panelGrid columns=2 
   h:outputText
value=#{text.right_bar_messageBody}/
   h:outputText
value=#{sessionBean.recentInstantMessage.body}/
   /h:panelGrid
   /f:facet
   /t:popup

Seems to be the same usage as you have.

cheers,

Gerald

On 11/16/06, Christian Wiesing [EMAIL PROTECTED] wrote:

I changed the libs to 1.1.5-Snap but it still don't work.

Matthias Wessendorf schrieb:
 I remember there was an issue...
 (but what?)

 is it possible to use MyFAces 1.1.5-SNAP and same for Tomahawk too ?



 On 11/16/06, Christian Wiesing [EMAIL PROTECTED] wrote:
 Hello,

 i have a problem with t:popup. I never get a popup window. I 
tried it

 as follow:

 t:popup id=infoPopup
  styleClass=popup
  closePopupOnExitingElement=false
  closePopupOnExitingPopup=false
  displayAtDistanceX=10
   displayAtDistanceY=10
  h:outputText id=info value=info/
 f:facet name=popup
 h:panelGroup
   h:panelGrid columns=1
 h:outputText id=testOutput
 value=Test output/
 /h:panelGrid
 /h:panelGroup
 /f:facet
 /t:popup

 Is there any configuration (or something like that) that i have to 
use

 to get it working?

 I use MyFaces 1.4, Tomahawk 1.3 and Facelets.

 regards,

 Christian












MyFaces Core 1.1.5-SNAPSHOT and state issue

2006-11-16 Thread Rogerio Pereira

Hi!

I found this issue after build myfaces core 1.1.5 from svn sources:

No serialized component state found in client request!

Any ideas about what is happening?

--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


input fileupload in jsf giving error

2006-11-16 Thread aztec

hi, 



   i  followed every thing mentioned in  your solution below for input file
upload. 


But  i am getting error valuebinding Impl i.e can not set the value for
expression #{mybean.myfile} to  a new value of type
org.apache.myfaces.custom.fileupload.UploadedFileDefaultMemoryImpl . 

and giving exception 

javax.servlet.jsp.el.ELException: Attempt to coerce a value of type
org.apache. 
myfaces.custom.fileupload.UploadedFileDefaultMemoryImpl to type
org.apache.myf 
aces.custom.fileupload.UploadedFile 



this is my problem please help me as soon as possible through mail 

my address   [EMAIL PROTECTED]






JBuilderDoug wrote:I finally figured this out, so  I'm going to put an
entire example in this post.  I'm using Tomahawk 1.1.3 with RI JSF created
in Borland's JBuilder.  I've created a .war file from borland and deployed
it under Tomcat 5.5 so it should be Borland independent.  The problems I was
having previously were in trying to deploy Tomahawk on a old JSF project.
I'm pretty sure I'm safe in saying you must use JSP 2.0 and Servlet 2.4 as a
minimum. 

inputFileUpload/Tomahawk specific elements are bold/italic 

In the backing bean WelcomeBean.java, I only read the uploaded file into a
byte [].  In my personal application, I simply insert the byte [] into an
Oracle BLOB.  You may need to write it to a file.  I'll assume you know how
to do that. 

I think that's pretty much it.  If you have any questions please respond to
this post.  I'll receive an e-mail and try to help.  If you want to know how
to implement Tomahawk 1.1.3 into Borland's JBuilder, I can help with that
also I believe. 

Doug 

Required libraries for this minimal project 

commons-beanutils.jar 
commons-collections.jar 
commons-digester.jar 
commons-fileupload.jar 
commons-logging.jar 
jsf-api.jar 
jsf-impl.jar 
jstl.jar 
standard.jar 
tomahawk-1.1.3.jar 

index.jsp 

html 
html 
head 
titleindex/title 
/head 
body bgcolor=#c0 
h1/h1 
jsp:forward page=Welcome.faces/jsp:forward 
/body 
/html 

Welcome.jsp 

[EMAIL PROTECTED] uri=http://java.sun.com/jsf/html; prefix=h% 
[EMAIL PROTECTED] uri=http://java.sun.com/jsf/core; prefix=f% 
%@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t % 
html 
head 
titleindex/title 
/head 
body bgcolor=#ff 
h1GoHurst Welcome/h1 
f:view 
  h:form id=welcomeForm enctype=multipart/form-data 
t:panelGrid columns=3 
t:inputFileUpload id=uFile value=#{WelcomeBean.theFile}
storage=file required=true / 
/t:panelGrid 
h:panelGrid columns=3 
h:commandButton id=onlyButton action=#{WelcomeBean.fmWelcome}
value=Click here to Upload/ 
/h:panelGrid 
  /h:form 
/f:view 
/body 
/html 

WelcomeBean.java 

package tomahawkfileupload; 

import java.io.File; 
import java.io.InputStream; 
import javax.servlet.http.HttpSession; 
import javax.faces.context.FacesContext; 
import org.apache.myfaces.custom.fileupload.UploadedFile; 

public class WelcomeBean 
{ 
private UploadedFile theFile; 

public UploadedFile getTheFile() { 
  return theFile; 
} 

public void setTheFile (UploadedFile theFile) { 
  this.theFile = theFile; 
} 

public String fmWelcome() 
{ 
FacesContext context = FacesContext.getCurrentInstance(); 
HttpSession session = (HttpSession)
context.getExternalContext().getSession(false); 
try { 
  InputStream stream = theFile.getInputStream(); 
  long fSize = theFile.getSize(); 
  byte [] buffer = new byte[(int)fSize]; 
  stream.read(buffer, 0, (int)fSize); 
  stream.close(); 
} catch (Exception ioe) { 
   ioe.printStackTrace(); 
} 
return success; 
} 
} 


web.xml 

?xml version=1.0 encoding=UTF-8? 
web-app xmlns=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; version=2.4 
  display-nameTomaModule/display-name 
  servlet 
servlet-nameFaces Servlet/servlet-name 
servlet-classjavax.faces.webapp.FacesServlet/servlet-class 
load-on-startup1/load-on-startup 
  /servlet 
  servlet-mapping 
servlet-nameFaces Servlet/servlet-name 
url-pattern*.faces/url-pattern 
  /servlet-mapping 
  filter 
filter-nameMyFacesExtensionsFilter/filter-name 
   
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class 
init-param 
  param-namemaxFileSize/param-name 
  param-value20m/param-value 
/init-param 
  /filter 
  filter-mapping 
filter-nameMyFacesExtensionsFilter/filter-name 
servlet-nameFaces Servlet/servlet-name 
  /filter-mapping 
  filter-mapping 
filter-nameMyFacesExtensionsFilter/filter-name 
url-pattern/faces/myFacesExtensionResource/*/url-pattern 
  /filter-mapping 
/web-app 


faces-config.xml 

?xml version=1.0 encoding=UTF-8? 
!DOCTYPE faces-config PUBLIC -//Sun Microsystems, Inc.//DTD JavaServer
Faces Config 1.1//EN 

Re: MyFaces Core 1.1.5-SNAPSHOT and state issue

2006-11-16 Thread Richard Capraro

Hi Rogerio,
i have the same problem.
I manage to fix it, changing this parameter in web.xml

param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueserver/param-value

from 'client' to 'server'

Hope it helps you to wait for an official bug fix ;-)


---
Richard Capraro


2006/11/16, Rogerio Pereira [EMAIL PROTECTED]:

Hi!

I found this issue after build myfaces core 1.1.5 from svn sources:

No serialized component state found in client request!

Any ideas about what is happening?

--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. ( http://faces.eti.br/?p=45)


Re: t:inputDate display seconds

2006-11-16 Thread Holger Prause

Aneesha Govil schrieb:

Hi,

I would like to display seconds as well in the t:inputDate component. 
Right now, it just gives me Date-Month-Year-Hours-Mins. I am using 
type=both. Any idea how can I set it to display seconds too?


Thanks,
Aneesha
  
Here an example:


   t:inputCalendar id=validUntil
   value=#{task.validUntil}
   validator=#{taskDateValidator.validate}
   renderAsPopup=true
   popupTodayString=#{messages['popup_today_string']}
   popupWeekString=#{messages['popup_week_string']}
   popupDateFormat=dd.MM.:HH:mm:ss
   helpText=dd.MM.:HH:mm:ss   
   /t:inputCalendar


Re: MyFaces Core 1.1.5-SNAPSHOT and state issue

2006-11-16 Thread Wendy Smoak

On 11/16/06, Richard Capraro [EMAIL PROTECTED] wrote:

Hi Rogerio,
i have the same problem.
I manage to fix it, changing this parameter in web.xml

param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueserver/param-value

from 'client' to 'server'

Hope it helps you to wait for an official bug fix ;-)


Is there an issue open for the underlying problem?

http://issues.apache.org/jira/browse/MYFACES

--
Wendy


RE: general myfaces performance question

2006-11-16 Thread Nebinger, David
Last time we got this it was suggested to:
 
* include a subject line
* include a short msg body
* ensure message is plain text, not html or rtf
 
We used 'subscribe' for both subject and body and the mailer let it through.

-Original Message-
From: Aneesha Govil [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 16, 2006 7:23 AM
To: MyFaces Discussion
Subject: Re: general myfaces performance question


I cannot subsribe to it. Get the following error:

This is an automatically generated Delivery Status Notification

Delivery to the following recipient failed permanently:

[EMAIL PROTECTED]

Technical details of permanent failure:
PERM_FAILURE: SMTP Error (state 12): 552 spam score (5.5) exceeded threshold
snip

Any idea where I can get support on this?

Thanks,
Aneesha


On 11/16/06, Aneesha Govil  [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]  
wrote: 

Found it on the Wiki - [EMAIL PROTECTED]

Sometimes it's difficult to remember that wiki is more correct than the website.

Thanks.
Aneesha



On 11/16/06, Aneesha Govil   mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote: 

Well how do I subscribe to the mailing list? The subscribe links aren't links 
here - http://incubator.apache.org/adffaces/trinidad-build/mail-lists.html  
http://incubator.apache.org/adffaces/trinidad-build/mail-lists.html 

Is it the standard [EMAIL PROTECTED]

Thanks,
Aneesha


On 11/16/06, Matthias Wessendorf  [EMAIL PROTECTED] wrote: 


mailing list works, I am on

check the trinidad wiki for nbuilds (from continuum)

http://wiki.apache.org/myfaces/Trinidad  
http://wiki.apache.org/myfaces/Trinidad 

On 11/16/06, Aneesha Govil  [EMAIL PROTECTED] wrote:
 Yes, I am aware of the Oracle connection. When I was evaluating what to use 
 for my project, I could not find a download location anywhere on the 
 incubator. Only source was available. The mailing list did not work either.
 It looked very useful from documentation et al.

 So how do I go about it if I want to use it? Anything like nightly builds 
 and where can I find them?

 Thanks a lot.
 Regards,
 Aneesha


 On 11/16/06, Gerald Müllan   mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 wrote: 
  Sure, think about the history before trinidad has come to incubator.
  It was oracle internal, so they have already used it in their webapps.
 
  Apart from this, the usage of trinidad is emerging, also in some 
  real-world web-apps.
 
  cheers,
 
  Gerald
 
  On 11/16/06, Aneesha Govil   mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
  wrote: 
   Is it alright to use Trinidad while it is still in the incubator?
  
   Aneesha
  
   On 11/16/06, Martin Marinschek  [EMAIL PROTECTED] wrote:
He should definitely take the Trinidad component set for high
performance requirements, with this, you're in the same region as
Struts for performance (probably better - cause if you do it yourself, 
you won't get the same optimized state-saving as is implemented in
Trinidad).
   
regards,
   
Martin 
   
On 11/15/06, Werner Punz  [EMAIL PROTECTED] wrote:
 Ok, before anyone is falling down the chair because I ask this 
 question.
 Here we go. A friend of mine is looking for a struts replacement
 framework covering extranet sites.

 Well here we go, my experience with jsf in the past is, that it was 
 not
 too suitable for extranet, but is a perfect choice for intranet
 sites.
 The reason, higher overhead than plain lean frameworks only covering
 a 
 minimalistic approach.

 The situation has changed however, facelets give a huge performance
 boost due to good caching. 
 But I lack experience, I know several bigger intranet installations,
 but extranet is a fully different beast.

 So my question how good does jsf scale nowadays in those cases. 
 Does anyone have any experience or samples?


   
   
--

http://www.irian.at
   
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German 
   
Professional Support for Apache MyFaces
   
  
  
 
 
  --
  http://www.irian.at
 
  Your JSF powerhouse -
  JSF Consulting, Development and
  Courses in English and German
 
  Professional Support for Apache MyFaces 
 




--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff: 
blog: http://jroller.com/page/mwessendorf  
http://jroller.com/page/mwessendorf 
mail: mwessendorf-at-gmail-dot-com







Re: MyFaces Core 1.1.5-SNAPSHOT and state issue

2006-11-16 Thread Matthias Wessendorf

http://issues.apache.org/jira/browse/MYFACES-1495

fix is about to be committed

On 11/16/06, Wendy Smoak [EMAIL PROTECTED] wrote:

On 11/16/06, Richard Capraro [EMAIL PROTECTED] wrote:
 Hi Rogerio,
 i have the same problem.
 I manage to fix it, changing this parameter in web.xml

 param-namejavax.faces.STATE_SAVING_METHOD/param-name
 param-valueserver/param-value

 from 'client' to 'server'

 Hope it helps you to wait for an official bug fix ;-)

Is there an issue open for the underlying problem?

http://issues.apache.org/jira/browse/MYFACES

--
Wendy




--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: MyFaces Core 1.1.5-SNAPSHOT and state issue

2006-11-16 Thread Cagatay Civici

Hi,

Matthias and I've identified the problem and working on it now:)

I dont think there's an issue about that.

Cagatay

On 11/16/06, Wendy Smoak [EMAIL PROTECTED] wrote:


On 11/16/06, Richard Capraro [EMAIL PROTECTED] wrote:
 Hi Rogerio,
 i have the same problem.
 I manage to fix it, changing this parameter in web.xml

 param-namejavax.faces.STATE_SAVING_METHOD/param-name
 param-valueserver/param-value

 from 'client' to 'server'

 Hope it helps you to wait for an official bug fix ;-)

Is there an issue open for the underlying problem?

http://issues.apache.org/jira/browse/MYFACES

--
Wendy



[Tobago] Dynamic reload of component data

2006-11-16 Thread swaczinna
Hi!

I want to reload some portions (a whole tc:panel or a tc:out) of a Tobago 
JSP page dynamicly, triggered by a selection of one row in a tc:sheet or 
by a modification of a tc:in, without reloading the whole page.
I know, Tobago uses Ajax internally and I know the tc:reload tag,
which reloads a components data in recurrent intervals. Is there a simple
way to use the Tobago Ajax features in a JSP page via Javascript?

Thanks for any help!
Regards
Helmut


Re: [Tobago] Setter method tc:sheet

2006-11-16 Thread Udo Schnurpfeil
The tc:sheet can modify objects in the List, but will not set the list 
itself.


HTH

Udo

PiotrekJ wrote:

Hi again,
Does tc:sheet support setter method?

I can't do it. 
tc:sheet value=#{Bean.list}..

getList works, setList is not executed ;/

Th again,
Peter

  




Re: MyFaces Core 1.1.5-SNAPSHOT and state issue

2006-11-16 Thread Matthias Wessendorf

fixed

On 11/16/06, Cagatay Civici [EMAIL PROTECTED] wrote:

Hi,

Matthias and I've identified the problem and working on it now:)

I dont think there's an issue about that.

Cagatay

On 11/16/06, Wendy Smoak [EMAIL PROTECTED] wrote:
 On 11/16/06, Richard Capraro  [EMAIL PROTECTED] wrote:
  Hi Rogerio,
  i have the same problem.
  I manage to fix it, changing this parameter in web.xml
 
  param-name javax.faces.STATE_SAVING_METHOD/param-name
  param-valueserver/param-value
 
  from 'client' to 'server'
 
  Hope it helps you to wait for an official bug fix ;-)

 Is there an issue open for the underlying problem?

 http://issues.apache.org/jira/browse/MYFACES

 --
 Wendy






--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: MyFaces Core 1.1.5-SNAPSHOT and state issue

2006-11-16 Thread Rogerio Pereira

Thx guys!

2006/11/16, Matthias Wessendorf [EMAIL PROTECTED]:


fixed

On 11/16/06, Cagatay Civici [EMAIL PROTECTED] wrote:
 Hi,

 Matthias and I've identified the problem and working on it now:)

 I dont think there's an issue about that.

 Cagatay

 On 11/16/06, Wendy Smoak [EMAIL PROTECTED] wrote:
  On 11/16/06, Richard Capraro  [EMAIL PROTECTED] wrote:
   Hi Rogerio,
   i have the same problem.
   I manage to fix it, changing this parameter in web.xml
  
   param-name javax.faces.STATE_SAVING_METHOD/param-name
   param-valueserver/param-value
  
   from 'client' to 'server'
  
   Hope it helps you to wait for an official bug fix ;-)
 
  Is there an issue open for the underlying problem?
 
  http://issues.apache.org/jira/browse/MYFACES
 
  --
  Wendy
 




--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com





--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


PhaseListener behaviour

2006-11-16 Thread Pfau, Oliver
Hi,
 
I have a phase listener defined in a backing bean constructor:
 
... 
LifecycleFactory lifecycleFactory =
(LifecycleFactory)
FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
Lifecycle lifecycle =
lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
lifecycle.addPhaseListener(new PhaseListener()
{
public void beforePhase(PhaseEvent event)
{
if (event.getPhaseId() == PhaseId.RENDER_RESPONSE)
{
// invoke a method of the backing bean from this
anonymous class
}
}

public void afterPhase(PhaseEvent event)
{
if (event.getPhaseId() == PhaseId.INVOKE_APPLICATION)
{
}
}

 

public PhaseId getPhaseId()
{

return PhaseId.ANY_PHASE;

}
});
...


How does this phase listener work ? I thought the call of the backing
bean class will only affect the backing bean in the current session. But
after debug it seems that all backing bean of all users are affected.
Does someone know the behaviour exactly ?

Thanks,
Oliver



Error when building all from svn

2006-11-16 Thread Stephen More

When building All from svn, I get the following error:

[INFO] A required plugin was not found: Plugin could not be found -
check that the goal name is correct: Unable to download the artifact
from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
   mvn install:install-file -DgroupId=org.codehaus.mojo
-DartifactId=tomcat-maven-plugin \
   -Dversion=1.0-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file



I tried to update tobago/pom.xml to include:

repository
   idCodehaus Snapshots/id
   urlhttp://snapshots.repository.codehaus.org//url
   snapshots
 enabledtrue/enabled
   /snapshots
   releases
 enabledfalse/enabled
   /releases
/repository

but it is still having problems.


Can the pom.xml be updated in svn to prevent this error ?

-Thanks
Steve More


Re: preserve formatting with textArea component

2006-11-16 Thread Andrew Robinson

Not sure what the question is. The value is not trimmed, or converted by any
code from the input text area that I am aware of, so white-space should not
be affected. If you want to display the text to the user in the original
formatting, show it in a textarea, pre element or span element with style
whitespace: pre. The style one may not work well in IE though (I have seen
some issues)

On 11/15/06, Madhav Bhargava [EMAIL PROTECTED] wrote:


 Hi All,



*Following is the requirement:*

User enters text in text area or a similar component. The user clicks on
the save button which then saves the data in a database.

When the user views the file again, data is retrieved from the database to
display on the page.



*Question:*

* *

   1. How will preserve any formatting which involves indentation, line
   breaks etc.. along with text?
   2. While showing the text in an editable or non-editable field how
   will display the text as it was entered using any JSF component?



Thanks,

madhav
  CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
solely for the use of the addressee(s). If you are not the intended
recipient, please notify the sender by e-mail and delete the original
message. Further, you are not to copy, disclose, or distribute this e-mail
or its contents to any other person and any such actions are unlawful. This
e-mail may contain viruses. Infosys has taken every reasonable precaution to
minimize this risk, but is not liable for any damage you may sustain as a
result of any virus in this e-mail. You should carry out your own virus
checks before opening the e-mail or attachment. Infosys reserves the right
to monitor and review the content of all messages sent to or from this
e-mail address. Messages sent to or from this e-mail address may be stored
on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***



Re: Get browsers resolution

2006-11-16 Thread Andrew Robinson

Are you looking for the viewable space inside the browser (the pixel
dimensions of the actual page) or are you looking for the outer width
of the window, or the user's screen resolution?

On 11/16/06, Adrian Mitev [EMAIL PROTECTED] wrote:

Hi all! I need to get browser's width and heigth and by this size i'll
include different stylesheets. Any suggestions how to do it?



[Tobago] How to set individual styles for individual components

2006-11-16 Thread swaczinna
Hi!InHTML,Iwriteforexample:style #xyz{color:red;}/style...inputtype="text"id="xyz"value=""/InTobago,I must write:tc:style #page1:xyz {color:red;} /tc:style...tc:page label="Test" id="page1"...tc:in value="Test" id="xyz"Because Tobago concatenates all hierarchical ids with a colon.But in style denifitions colons are not allowed for ids. So the style definition has no effect.Is there a workaround for this problem? Or is there any other way to set the style for indiviual components?Thanks for any help!RegardsHelmut


Best Practice Suggestions

2006-11-16 Thread Nick77

Hi,

I've been playing around with JSF recently, and having had some initial
problems with session-scoped beans, browser back button use and Javascript
submits, I'm posting some ideas for JSF Best Practices...

Separation of Model, View and Controller:
The Model is the 'backing' bean, 1 bean per JSP page, I'll call it the
ModelBean. Contains only the data that is required for display in the view,
and also id fields (the kind of things you'd put in a hidden input in
Struts). Also may contain presentation-specific logic e.g. calculating the
value to use for a rendered attribute, to keep lengthy EL expressions out of
the JSP.

The View is the JSP page (including the JSF component tree). Contains EL
expressions to 'bind' to ModelBean properties, and EL expressions to wire
actions and actionListeners to Controller methods.

The Controller is a separate bean, probably 1 bean per JSP page (maybe not
if you've got some common functionality in different pages). I'll call this
the ControllerBean. The ControllerBean handles events fired by View
components, e.g. action=#{controllerBean.updateCustomerDetails} and then
calls the appropriate method in the Business Interface. The ControllerBean
has references to both the ModelBean and the Business Interface
implementation which are managed i.e. defined in faces-config.xml. Therefore
a typical user action such as clicking Update Customer Details will invoke
controllerBean.updateCustomerDetails, which will in turn extract any
user-entered data from the ModelBean, use this data as parameters to the
call to the Business Interface, and then depending on the result of that
call, populate the ModelBean with the results and invoke the desired
navigation by returning an appropriate String.

Minimal Bean Scope:
The ModelBean and ControllerBean are in request scope, the Business
Interface implementation is also a managed bean, but is in session scope.

Use t:saveState:
As everything is stateless, how do I ensure that the view has some notion of
the 'current' Customer? Also how do I handle use of the browser back button?
The answer is to use t:saveState to serialise the ModelBean along with the
component tree. That way, when submitting a page (e.g. Update Customer
Details) the ModelBean is not recreated, just de-serialized automatically by
t:saveState. It has non-null values for id, child Collections etc so no
nasty problems with dataTables and commandLinks.

Get rid of Javascript submit():
I wanted dependent drop-down lists, e.g. 2 list boxes, when you select from
the first one e.g. Shape/Colour, it updates the available choices in the
second one e.g. Square/Circle or Red/Green/Blue. Initially I used
onchange=submit() so I could refresh the page with the new choices in the
second drop-down list. But I found this caused a problem if you use the
browser back button - go 'back' to this page then cause an onchange event -
in my implementation this caused the browser to go 'forward' in its history
cache. This was not the desired effect. So I used the method described 
http://http://wiki.apache.org/myfaces/JavascriptWithJavaServerFaces here  to
avoid the plain submit().


Advantages of the above:
Clear separation of concerns in the presentation layer (instead of combining
Model and Controller like most JSF examples I've seen).
Less use of session scope means less memory required on server and less to
worry about for session failover.
No problems with use of browser back button (assuming your Biz Interface can
deal with 'duplicate' invocations).

Disadvantages:
Increased processing to create/recreate request-scoped beans.
Increased processing, bandwidth and client memory required to use
t:saveState.


This stuff may well be obvious to most people viewing this forum, so if you
think its obvious/rubbish/useful please let me know (and preferably why :-)
all comments/feedback welcome...

Thanks

Nick
-- 
View this message in context: 
http://www.nabble.com/Best-Practice-Suggestions-tf2644584.html#a7382547
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: t:dataTable input

2006-11-16 Thread JS

Me again. Any one have a thought about my problem ? Please respond


JS wrote:
 
 Hi,
 
 I have datatable with rows adding dynamically with inputText. I cannot get
 the value entering into input text field. 
 
 Here is my code :
 
 
 t:dataTable value=#{TSKBean.workQtDetail} var=wkQtDetail
 columnClasses=columnStyle border=0 columnClasses=dataColm1,dataColm2
 preserveDataModel=false
 rowGroupStyle=border-bottom:gold;border-bottom-style:solid;border-bottom-width:2px;vertical-align:top
 preserveRowStates=truet:column groupBy=truef:facet
 name=headerh:outputText id=dpt value=#{msg.dept}
 //f:faceth:outputText id=dept value=#{wkQtDetail.deptSelected}
 /h:inputHidden id=dptId
 value=#{wkQtDetail.deptId}//t:columnt:columnf:facet
 name=headerh:outputText id=workQtDetail
 value=#{msg.work_qt_detail} //f:faceth:outputText id=wk
 value=#{wkQtDetail.work} /h:inputHidden id=wId
 value=#{wkQtDetail.workId}//t:columnt:columnf:facet
 name=headerh:outputText id=effort value=#{msg.eft}
 //f:faceth:inputText id=qtEffort
 value=#{wkQtDetail.qtOfEffort}//t:column/t:dataTable 
 
 
 
 I tried putting bean in session scope. But that didn't change .
 
 Please please help me to sort why the input data is not getting. 
 
 Thanks,
 ~J
 

-- 
View this message in context: 
http://www.nabble.com/t%3AdataTable-input-tf2641794.html#a7383628
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: PhaseListener behaviour

2006-11-16 Thread Gerald Müllan

Hi,

you have to make sure every time to make a phaseListener thread safe.
Means it is shared by all user among the incoming requests.

A PL for only one user in only one session is not the way it works..

cheers,

Gerald

On 11/16/06, Pfau, Oliver [EMAIL PROTECTED] wrote:

Hi,

I have a phase listener defined in a backing bean constructor:

...
LifecycleFactory lifecycleFactory =
(LifecycleFactory)
FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
Lifecycle lifecycle =
lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
lifecycle.addPhaseListener(new PhaseListener()
{
public void beforePhase(PhaseEvent event)
{
if (event.getPhaseId() == PhaseId.RENDER_RESPONSE)
{
// invoke a method of the backing bean from this
anonymous class
}
}

public void afterPhase(PhaseEvent event)
{
if (event.getPhaseId() == PhaseId.INVOKE_APPLICATION)
{
}
}



public PhaseId getPhaseId()
{

return PhaseId.ANY_PHASE;

}
});
...


How does this phase listener work ? I thought the call of the backing
bean class will only affect the backing bean in the current session. But
after debug it seems that all backing bean of all users are affected.
Does someone know the behaviour exactly ?

Thanks,
Oliver





--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


Re: Best Practice Suggestions

2006-11-16 Thread Craig McClanahan

Some thoughts intermixed below.

On 11/16/06, Nick77 [EMAIL PROTECTED] wrote:



Separation of Model, View and Controller:
The Model is the 'backing' bean, 1 bean per JSP page, I'll call it the
ModelBean. Contains only the data that is required for display in the
view,
and also id fields (the kind of things you'd put in a hidden input in
Struts). Also may contain presentation-specific logic e.g. calculating the
value to use for a rendered attribute, to keep lengthy EL expressions out
of
the JSP.



Based on my experiences, I have a slightly different viewpoint ... I
consider the backing bean that is associated with the page (JSP, facelets,
clay, whatever) to be part of the view tier, not part of the model.  It's
role is to react to user input events (submit buttons, command links, value
changes), and make presentation-related decisions (is this user authorized
to see this data?  where should we navigate next?).

I like to model the model :-) as separate beans, independent of web tier
APIs, that are used as properties of the backing beans.  For example, if
you're using Hibernate or JPA, it's quite natural to have, say, a Customer
class representing a particular customer.  In a CRUD app, you can make a
Customer property available in your backing bean, and then bind directly to
its properties (#{backing.customer.name}).

There are a couple of cases where model tier stuff can leak in to the
backing bean (keeping primary keys, embedding simple business logic in
action methods, etc.) but you are generally best off keeping that kind of
stuff separate.

The View is the JSP page (including the JSF component tree). Contains EL

expressions to 'bind' to ModelBean properties, and EL expressions to wire
actions and actionListeners to Controller methods.

The Controller is a separate bean, probably 1 bean per JSP page (maybe not
if you've got some common functionality in different pages). I'll call
this
the ControllerBean. The ControllerBean handles events fired by View
components, e.g. action=#{controllerBean.updateCustomerDetails} and then
calls the appropriate method in the Business Interface. The ControllerBean
has references to both the ModelBean and the Business Interface
implementation which are managed i.e. defined in faces-config.xml.
Therefore
a typical user action such as clicking Update Customer Details will invoke
controllerBean.updateCustomerDetails, which will in turn extract any
user-entered data from the ModelBean, use this data as parameters to the
call to the Business Interface, and then depending on the result of that
call, populate the ModelBean with the results and invoke the desired
navigation by returning an appropriate String.



JSF generally encourages a view helper pattern, where there is some
backing object per view that serves the controller role.  Especially if you
are using something like Shale, you can get away with using the same backing
bean you are already using for the view events.

I agree with you that segregating the business logic (updateCustomerDetails)
into separate classes from your backing beans is a good idea ... but I think
of that logic as part of the model, not part of the controller.

Minimal Bean Scope:

The ModelBean and ControllerBean are in request scope, the Business
Interface implementation is also a managed bean, but is in session scope.



I've seen scenarios where the business interface implementation can be in
application scope ... that works best if it is stateless, and can
legitimately be shared across all users.  Session scope makes more sense if
you need to keep per-user state, and/or different business logic for
different users.

Use t:saveState:

As everything is stateless, how do I ensure that the view has some notion
of
the 'current' Customer? Also how do I handle use of the browser back
button?
The answer is to use t:saveState to serialise the ModelBean along with the
component tree. That way, when submitting a page (e.g. Update Customer
Details) the ModelBean is not recreated, just de-serialized automatically
by
t:saveState. It has non-null values for id, child Collections etc so no
nasty problems with dataTables and commandLinks.



Here is a place where I don't really like the MyFaces solution ... why
should the author of the view (JSP/Facelets/Clay) need to be concerned with
controller issues like saving state?  That should be in the purview of the
person writing the backing bean.

An elegant way to do that, which has some helper method in Shale's view
controllers, is to leverage the fact that JSF components can take arbitrary
attributes.  Thus, in my backing bean, if I want to keep track of the
customer id I'm currently on, I do something like this (in a prerender()
method if using Shale):

   UIViewRoot root = FacesContext.getCurrentInstance().getViewRootl();
   root.getAttributes().put(customerId, customerId);

and then pull it back out on the subsequent postback.  That way, the person
writing the view doesn't have to be bothered with this 

RE: t:dataTable input

2006-11-16 Thread Nebinger, David
  I have datatable with rows adding dynamically with 
 inputText. I cannot get
  the value entering into input text field. 

What do you mean you cannot get the value?  You're trying to access it 
directly, or the backing bean is not being updated, or what?



Re: PhaseListener behaviour

2006-11-16 Thread Simon Kitching

Gerald Müllan wrote:

you have to make sure every time to make a phaseListener thread safe.
Means it is shared by all user among the incoming requests.

A PL for only one user in only one session is not the way it works..


Yep. If you want to get per-page callbacks to a backing bean (rather 
than callbacks triggered by components) then a PhaseListener is *not* 
the right solution (at least not without a lot of extra clever stuff). 
As Gerald notes, PhaseListener classes are application-wide (shared by 
all users); it can use FacesContext.getCurrentInstance to determine the 
right context for the current user, but cannot easily determine what 
backing bean methods to then invoke.


The Apache Shale library has one solution, the view controller module. 
It does use a PhaseListener, but also hooks the ViewHandler and various 
other bits to provide the phase listener with enough info to figure out 
what beans to invoke. It's still a pretty limited solution in many ways 
though.


The project I'm currently working on initially used a 
PhaseListener-based approach for per-page callbacks, where the 
PhaseListener used a list of managed beans stored in a session-scope 
attribute to determine what callbacks to make This turned out to be 
fundamentally flawed. I've recently replaced this with another approach: 
a custom component that has onRender and onPostback attributes that 
are method bindings. On call to its processDecodes method it invokes the 
onPostback method binding (if any), and on encodeBegin it invokes the 
onRender method binding (if any). For any page where an associated 
backing bean needs page-related callbacks, this tag can just be added to 
the page. It's pretty simple and very effective so far. It handles pages 
that are composed of separate fragments using includes much more 
elegantly than the shale approach for example. It also keeps 
page-relevant configuration in the page rather than in the faces config 
file. I think a component like this could be a useful addition to tomahawk.


Regards,

Simon


Re: Download location for sandbox JAR and Example Source Files?

2006-11-16 Thread Wdiaz

Stephen Osella escribió:
Do you know the location for downloading the sandbox JAR and example 
source files?


Thanks for the tip about the sandbox.  The s:pprPanelGroup looks like 
what I need.



http://people.apache.org/builds/myfaces/nightly/

--
Cordialmente

William Diaz Pabón
Coordinador Técnico de Desarrollo
Vicerrectoría de Gestión y Desarrollo Tecnológico
Universidad de Pamplona



RE: t:dataTable input

2006-11-16 Thread JS

Sorry if I was unclear. Backing bean is not getting updated. 
I am using my faces datatable with grouping row facility. In the datatable I
need to use a input text to provide the user to enter values and when press
button it should get in the backing bean and so that i can update the
database. I can get the value in the backing bean from an input text field
outside the datatable.But when it comes inside it doesn't ! 
Am I clear ? If am not please tell me . I shall post the bean code as well.

Thanks,
JS.




Nebinger, David wrote:
 
  I have datatable with rows adding dynamically with 
 inputText. I cannot get
  the value entering into input text field. 
 
 What do you mean you cannot get the value?  You're trying to access it
 directly, or the backing bean is not being updated, or what?
 
 
 

-- 
View this message in context: 
http://www.nabble.com/t%3AdataTable-input-tf2641794.html#a7388693
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[Tobago] tc:sheet with columns placed on different tabs

2006-11-16 Thread Wojciech Blad

Hi All,

Is possible to use one sheet control with columns placed on different 
tabs within single tabGroup?


I have a table with large number of columns and instead of using one 
sheet control scrolled horizontally I want to use tabGroup control to 
place groups of columns on different tabs.


Thanks for any suggestions.
Wojtek







RE: t:dataTable input

2006-11-16 Thread Nebinger, David
 Sorry if I was unclear. Backing bean is not getting updated. 

The UIData object that is backing the h:dataTable would be updated upon 
submit, therefore the list itself (with each individual wkQtDetail instance) 
should also be updated.

Have you checked to see if you're getting any validation errors generated as 
part of the submit?



RE: t:dataTable input

2006-11-16 Thread JS

No, I haven't got any validation errors.  I have initialised qtOfEffort(in
the datatable input ) in wkQtDetail  as 0.0. So in the backing bean I am
getting as 0.0 as well. I am not using the UIData object. I am not whether I
have written write code for that.Here is my backing bean method corrsponding
the above jsp:

public List getWorkQtDetail() throws ServiceException { 
workQtDetail = new ArrayList();WorkQuoteDetail workQt;List
depts = WorkBasedQtFacade.getDeptByQtNo(qtDetail.getQuoteNo());   
for (int i=0;idepts.size();i++) { Object key = depts.get(i);   
 
//WorkQuoteDetail workQt = new WorkQuoteDetail();   Department
dept = DeptFacade.getById(Integer.parseInt(key.toString())); // getting from
db List works =
WorkBasedQtFacade.getWorkByQtNo(qtDetail.getQuoteNo(),dept.getDeptId());//getting
from db  for (int j=0;jworks.size();j++) {
Object w = works.get(j); Work work =
WorkFacade.getById(Integer.parseInt(w.toString())); workQt = new
WorkQuoteDetail(dept.getDeptNm(),work.getWorkNm(),
Integer.parseInt(key.toString()),Integer.parseInt(w.toString()));
workQtDetail.add(workQt);
getSelectItems().put(dept.getDeptNm(),work.getWorkNm()); }   
}return workQtDetail;}
.
public class WorkQuoteDetail implements Serializable{private String
work = null;private String deptSelected = null;private double
qtOfEffort = 0.0;  private int deptId = 0;private int workId =
0;/** Creates a new instance of WorkQuoteDetail */public
WorkQuoteDetail(String deptSelected,String work,int deptId,int workId) {   
this.deptSelected = deptSelected;this.work = work;   
this.deptId = deptId;this.workId = workId;} public String
getWork() {return work;} public void setWork(String work) { 
  
this.work = work;} public String getDeptSelected() {return
deptSelected;} public void setDeptSelected(String deptSelected) {   
this.deptSelected = deptSelected;}public double getQtOfEffort() {   
return qtOfEffort;} public void setQtOfEffort(double qtOfEffort) {  
 
this.qtOfEffort = qtOfEffort;} public int getDeptId() {   
return deptId;} public void setDeptId(int deptId) {   
this.deptId = deptId;} public int getWorkId() {return
workId;} public void setWorkId(int workId) {this.workId =
workId;}}

Could you please tell me your thoughts on it. Please help me. 

Thanks,
JS.



Nebinger, David wrote:
 
 Sorry if I was unclear. Backing bean is not getting updated. 
 
 The UIData object that is backing the h:dataTable would be updated upon
 submit, therefore the list itself (with each individual wkQtDetail
 instance) should also be updated.
 
 Have you checked to see if you're getting any validation errors generated
 as part of the submit?
 
 
 

-- 
View this message in context: 
http://www.nabble.com/t%3AdataTable-input-tf2641794.html#a7389429
Sent from the MyFaces - Users mailing list archive at Nabble.com.



RE: t:dataTable input

2006-11-16 Thread Nebinger, David
 I am not using the UIData object. I 
 am not whether I have written write code for that.
 Here is my backing bean method corrsponding
 the above jsp:

Well, first you are using a UIData object (it is inferred via the use of the 
h:dataTable tag).

The list that you return (being constructed on the fly) is managed by the 
UIData table, and upon form submit each of the WorkQuoteDetail instances that 
are part of that UIData object will be updated, and I think they are updated.

The part that is missing from your code submission is how you are checking the 
value of qtOfEffort to determine if it has been changed or not; can you provide 
that snippet?


RE: t:dataTable input

2006-11-16 Thread JS

Sure. I will 
In the action method I am getting the getWorkQtDetail()  list and when I
iterate it , I can see that the qtOfEffort is not getting the new value. 

public void actionMethod {
for(Iterator itr=getWorkQtDetail()  .iterator();itr.hasnext();)
WorkQuoteDetail key = (WorkQuoteDetail ) itr.next();
Logger.getLog().debug(qtOfEffort : +key.getQtOfEffort()); // here i should
get the updated value. but am not.
}

Thanks,
JS.


Nebinger, David wrote:
 
 I am not using the UIData object. I 
 am not whether I have written write code for that.
 Here is my backing bean method corrsponding
 the above jsp:
 
 Well, first you are using a UIData object (it is inferred via the use of
 the h:dataTable tag).
 
 The list that you return (being constructed on the fly) is managed by the
 UIData table, and upon form submit each of the WorkQuoteDetail instances
 that are part of that UIData object will be updated, and I think they are
 updated.
 
 The part that is missing from your code submission is how you are checking
 the value of qtOfEffort to determine if it has been changed or not; can
 you provide that snippet?
 
 

-- 
View this message in context: 
http://www.nabble.com/t%3AdataTable-input-tf2641794.html#a7389873
Sent from the MyFaces - Users mailing list archive at Nabble.com.



RE: t:dataTable input

2006-11-16 Thread Nebinger, David
 Sure. I will 
 In the action method I am getting the getWorkQtDetail()  list 
 and when I
 iterate it , I can see that the qtOfEffort is not getting the 
 new value. 
 
 public void actionMethod {
 for(Iterator itr=getWorkQtDetail()  .iterator();itr.hasnext();)
 WorkQuoteDetail key = (WorkQuoteDetail ) itr.next();
 Logger.getLog().debug(qtOfEffort : +key.getQtOfEffort()); 
 // here i should
 get the updated value. but am not.
 }

Okay, well here's your whole problem.

getWorkQtDetail() returns a new list every time, so the actionMethod of course 
always will find that qtOfEffort is 0.0.


RE: t:dataTable input

2006-11-16 Thread JS

ok. Then how can I access the updated workQtDetail list ? and qtOfEffort
value ?  Please tell me where I am going wrong in this ?
Thanks,
JS.


Nebinger, David wrote:
 
 Sure. I will 
 In the action method I am getting the getWorkQtDetail()  list 
 and when I
 iterate it , I can see that the qtOfEffort is not getting the 
 new value. 
 
 public void actionMethod {
 for(Iterator itr=getWorkQtDetail()  .iterator();itr.hasnext();)
 WorkQuoteDetail key = (WorkQuoteDetail ) itr.next();
 Logger.getLog().debug(qtOfEffort : +key.getQtOfEffort()); 
 // here i should
 get the updated value. but am not.
 }
 
 Okay, well here's your whole problem.
 
 getWorkQtDetail() returns a new list every time, so the actionMethod of
 course always will find that qtOfEffort is 0.0.
 
 

-- 
View this message in context: 
http://www.nabble.com/t%3AdataTable-input-tf2641794.html#a7390238
Sent from the MyFaces - Users mailing list archive at Nabble.com.



RE: t:dataTable input

2006-11-16 Thread JS

ohh do I need to set like 
if(workQtDetail  ==null) {
workQtDetail  = new ArrayList();
}



JS wrote:
 
 ok. Then how can I access the updated workQtDetail list ? and qtOfEffort
 value ?  Please tell me where I am going wrong in this ?
 Thanks,
 JS.
 
 
 Nebinger, David wrote:
 
 Sure. I will 
 In the action method I am getting the getWorkQtDetail()  list 
 and when I
 iterate it , I can see that the qtOfEffort is not getting the 
 new value. 
 
 public void actionMethod {
 for(Iterator itr=getWorkQtDetail()  .iterator();itr.hasnext();)
 WorkQuoteDetail key = (WorkQuoteDetail ) itr.next();
 Logger.getLog().debug(qtOfEffort : +key.getQtOfEffort()); 
 // here i should
 get the updated value. but am not.
 }
 
 Okay, well here's your whole problem.
 
 getWorkQtDetail() returns a new list every time, so the actionMethod of
 course always will find that qtOfEffort is 0.0.
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/t%3AdataTable-input-tf2641794.html#a7390267
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Custom JSF navigation

2006-11-16 Thread David Chandler

Oliver, the portal only calls the portlet's processAction() methodfor the
portlet that invoked the action. This in turn runs the full JSF lifecyle for
that portlet, including the INVOKE_APPLICATION phase, which runs the
navigation handler. All other portlets, however, proceed directly to
RENDER_RESPONSE by way of the portlet's doView() method. Therefore, even
with a custom Navigation Handler, you couldn't cause the passive portlet to
navigate to a new view (at least, not cleanly).

Off the top of my head, the only way I can think of to change the view in
the passive portlet (your portlet 2) is to use a single view that in turn
includes the real view (using a JSP include?) based on the value in
HTTPSession set by your active portlet. Actually, that won't work, either,
because jsp:include won't know how to evaluate a Faces value binding. It
should work with Facelets' ui:include component, however.

Of course, this approach has the disadvantage that you must keep track of
navigation states yourself in the passive portlet.

HTH,
/dmc

--
David Chandler
Development Coach
learnjsf.com

On 11/16/06, Pfau, Oliver [EMAIL PROTECTED] wrote:


 Hi,

I have 2 JSF portlets. Click in portlet 1 stores an object in the portlet
session. The portlet 2 evalutes on each server-roundtrip the object in the
portlet session. I want to realize a portlet session object sensitive
portlet 2. E. g. when I click a link for a customer object in portlet 1, the
GUI for a customer should be visible in portlet 2. When I click in portlet 1
on a bill object a bill GUI is shown and so on. I use a value binding in
portlet 2 as trigger. There I want to use instanceof operator and then
change the navigation. How can I set an outcome to show a jsp in portlet 2 ?
It is not an action only a value binding. Can this be done without a
subclass of navigation handler ?

Thanks,
Oliver



Re: Custom component, validation messages

2006-11-16 Thread David Chandler

Oh, I think I see now. You could write a phase listener to run before
RENDER_RESPONSE that looks for messages associated with your sub-components,
removes them from the messages queue, and adds them associated with the
parent instead, like this... :-)

package com.learnjsf.util.faces;

import java.util.Iterator;

import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class ComponentMessageAggregatorListener implements PhaseListener {

   private static final Log log = LogFactory
   .getLog(ComponentMessageAggregatorListener.class);

   public ComponentMessageAggregatorListener() {
   }

   public PhaseId getPhaseId() {
   return PhaseId.RENDER_RESPONSE;
   }

   public void afterPhase(PhaseEvent event) {
   }

   public void beforePhase(PhaseEvent event) {

   FacesContext facesContext = event.getFacesContext();
   for (Iterator i = facesContext.getClientIdsWithMessages();
i.hasNext();)
{
   String clientId = (String) i.next();
   String parentId = null;
   /*
* your parsing logic here to set parent ID if clientId is one
you
* recognize as a subcomponent
* if (clientId matches some pattern)
*   set parentId = the parent part
*/
   // Remove the child component's message(s) and attach to the
parent instead
   if (parentId != null)
   for (Iterator msgs = facesContext.getMessages(clientId);
msgs
   .hasNext();) {
   FacesMessage fm = (FacesMessage) msgs.next();
   facesContext.addMessage(parentId, fm);
   msgs.remove();
   }
   }
   }

}

On 11/15/06, delbd [EMAIL PROTECTED] wrote:


I was hoping there could be some suggestion on how to transfert messages
from component id X:a to component id X. I'd like to give user
opportunity to put those error message where ever they want. But maybe i
should better do 'component X internal validation that check values of
it's subcomponents', it seems more logical now.

Thanks for your answers, at least i know i am not missing some obvious
possibility :)

Martin Marinschek a écrit :
 If he can integrate the message-component in the input-component, then
 that's an option, right!

 regards,

 Martin

 On 11/14/06, David Chandler [EMAIL PROTECTED] wrote:
 I may not be understanding your question correctly, but if you're
 adding the
 input sub-components programatically, you could add the associated
 message
 sub-components programatically at the same time. Call setId() on each
 input
 component to give it its own ID that you can then use in for= on the
 corresponding message component.

 /dmc

 --
 David Chandler
 Development Coach
 learnjsf.com

 On 11/14/06, David Delbecq [EMAIL PROTECTED] wrote:
  Hi,
 
  I have a custom component ( let's say assume has id X ) that is
 made of
  several Input component ( let's say X:a, X:b, X:c)
 
  Is it possible to have the error messages for X also contains the
 error
  for X:a X:b and X:c. I  assume user will want something like
  h:message for=X/
 
  and not have to write
 
  h:message for=X/
  h:message for=X:a/
  h:message for=X:b/
  h:message for=X:c/
 
  Is there some mechanics in myfaces that can be of any help to me? Do
i
  have to manually transfer message in the component, and if yes, when?
 











--
David Chandler
Development Coach
learnjsf.com


Re: [Tobago] tc:sheet with columns placed on different tabs

2006-11-16 Thread Udo Schnurpfeil

Hello Wojtek,

you can put the sheet on multiple tabs and set in the columns you want 
to see rendered=true/false.


Regards

Udo

Wojciech Blad schrieb:

Hi All,

Is possible to use one sheet control with columns placed on different 
tabs within single tabGroup?


I have a table with large number of columns and instead of using one 
sheet control scrolled horizontally I want to use tabGroup control to 
place groups of columns on different tabs.


Thanks for any suggestions.
Wojtek








AW: PhaseListener behaviour

2006-11-16 Thread Pfau, Oliver
Ok, thank you both...

So a backing bean method executed in the phase listener is called for every 
user and every request, right ? If I change a navigation attribute there, all 
users are affected.

Another interesting behaviour I have found in my debugging was that on each 
login in liferay (using apache bridge and portlet filter) the old backing bean 
is not destroyed. On the first login after server start my 
out-of-the-phase-listener executed backing bean method is called once. After 
second login 2 time and so on. That's with the same user...every call of the 
bbean method is another instance of the bbean. Maybe the phase listener 
references the bbean instances and prevents garbage collection ? ...I think 
not...but its strange...

-Ursprüngliche Nachricht-
Von: Simon Kitching [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 16. November 2006 21:25
An: MyFaces Discussion
Betreff: Re: PhaseListener behaviour

Gerald Müllan wrote:
 you have to make sure every time to make a phaseListener thread safe.
 Means it is shared by all user among the incoming requests.

 A PL for only one user in only one session is not the way it works..

Yep. If you want to get per-page callbacks to a backing bean (rather 
than callbacks triggered by components) then a PhaseListener is *not* 
the right solution (at least not without a lot of extra clever stuff). 
As Gerald notes, PhaseListener classes are application-wide (shared by 
all users); it can use FacesContext.getCurrentInstance to determine the 
right context for the current user, but cannot easily determine what 
backing bean methods to then invoke.

The Apache Shale library has one solution, the view controller module. 
It does use a PhaseListener, but also hooks the ViewHandler and various 
other bits to provide the phase listener with enough info to figure out 
what beans to invoke. It's still a pretty limited solution in many ways 
though.

The project I'm currently working on initially used a 
PhaseListener-based approach for per-page callbacks, where the 
PhaseListener used a list of managed beans stored in a session-scope 
attribute to determine what callbacks to make This turned out to be 
fundamentally flawed. I've recently replaced this with another approach: 
a custom component that has onRender and onPostback attributes that 
are method bindings. On call to its processDecodes method it invokes the 
onPostback method binding (if any), and on encodeBegin it invokes the 
onRender method binding (if any). For any page where an associated 
backing bean needs page-related callbacks, this tag can just be added to 
the page. It's pretty simple and very effective so far. It handles pages 
that are composed of separate fragments using includes much more 
elegantly than the shale approach for example. It also keeps 
page-relevant configuration in the page rather than in the faces config 
file. I think a component like this could be a useful addition to tomahawk.

Regards,

Simon


AW: Custom JSF navigation

2006-11-16 Thread Pfau, Oliver
Thanks,
 
I already thought about something with JSTL and jsp:include depending on
the portlet session attribute. But I pressume it will be the same
behaviour that the correct view is rendered in one roundtrip later. So
my approach with a phase listener and with the custom navigation isn't
the way. It seems that will be my first dead end with JSF porlets :(
...full of expectations on portlet spec 2.0 and standardized JSF
bridge
 
Regards,
Oliver



Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von
David Chandler
Gesendet: Freitag, 17. November 2006 02:55
An: MyFaces Discussion
Betreff: Re: Custom JSF navigation


Oliver, the portal only calls the portlet's processAction() methodfor
the portlet that invoked the action. This in turn runs the full JSF
lifecyle for that portlet, including the INVOKE_APPLICATION phase, which
runs the navigation handler. All other portlets, however, proceed
directly to RENDER_RESPONSE by way of the portlet's doView() method.
Therefore, even with a custom Navigation Handler, you couldn't cause the
passive portlet to navigate to a new view (at least, not cleanly). 

Off the top of my head, the only way I can think of to change the view
in the passive portlet (your portlet 2) is to use a single view that in
turn includes the real view (using a JSP include?) based on the value in
HTTPSession set by your active portlet. Actually, that won't work,
either, because jsp:include won't know how to evaluate a Faces value
binding. It should work with Facelets' ui:include component, however. 

Of course, this approach has the disadvantage that you must keep track
of navigation states yourself in the passive portlet.

HTH,
/dmc

-- 
David Chandler
Development Coach
learnjsf.com 


On 11/16/06, Pfau, Oliver [EMAIL PROTECTED] wrote: 

Hi,
 
I have 2 JSF portlets. Click in portlet 1 stores an object in
the portlet session. The portlet 2 evalutes on each server-roundtrip the
object in the portlet session. I want to realize a portlet session
object sensitive portlet 2. E. g. when I click a link for a customer
object in portlet 1, the GUI for a customer should be visible in portlet
2. When I click in portlet 1 on a bill object a bill GUI is shown and so
on. I use a value binding in portlet 2 as trigger. There I want to use
instanceof operator and then change the navigation. How can I set an
outcome to show a jsp in portlet 2 ? It is not an action only a value
binding. Can this be done without a subclass of navigation handler ?
 
Thanks,
Oliver







AW: PhaseListener behaviour

2006-11-16 Thread Pfau, Oliver
Another question...is there a difference is I register a phase listener in my 
backing bean constructor or in the faces-config.xml ?

 

-Ursprüngliche Nachricht-
Von: Simon Kitching [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 16. November 2006 21:25
An: MyFaces Discussion
Betreff: Re: PhaseListener behaviour

Gerald Müllan wrote:
 you have to make sure every time to make a phaseListener thread safe.
 Means it is shared by all user among the incoming requests.

 A PL for only one user in only one session is not the way it works..

Yep. If you want to get per-page callbacks to a backing bean (rather 
than callbacks triggered by components) then a PhaseListener is *not* 
the right solution (at least not without a lot of extra clever stuff). 
As Gerald notes, PhaseListener classes are application-wide (shared by 
all users); it can use FacesContext.getCurrentInstance to determine the 
right context for the current user, but cannot easily determine what 
backing bean methods to then invoke.

The Apache Shale library has one solution, the view controller module. 
It does use a PhaseListener, but also hooks the ViewHandler and various 
other bits to provide the phase listener with enough info to figure out 
what beans to invoke. It's still a pretty limited solution in many ways 
though.

The project I'm currently working on initially used a 
PhaseListener-based approach for per-page callbacks, where the 
PhaseListener used a list of managed beans stored in a session-scope 
attribute to determine what callbacks to make This turned out to be 
fundamentally flawed. I've recently replaced this with another approach: 
a custom component that has onRender and onPostback attributes that 
are method bindings. On call to its processDecodes method it invokes the 
onPostback method binding (if any), and on encodeBegin it invokes the 
onRender method binding (if any). For any page where an associated 
backing bean needs page-related callbacks, this tag can just be added to 
the page. It's pretty simple and very effective so far. It handles pages 
that are composed of separate fragments using includes much more 
elegantly than the shale approach for example. It also keeps 
page-relevant configuration in the page rather than in the faces config 
file. I think a component like this could be a useful addition to tomahawk.

Regards,

Simon