Re: Attribute Matrix in Tobaho

2007-06-25 Thread Helmut Swaczinna

Hi Yazid,

no, I havn't found an attribute matrix. But I didn't looked for it in the 
last few months.
In the Tobago demo there's a new reference section. Maybe you can find the 
information you're

looking for there.

Regards
Helmut

- Original Message - 
From: [EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Sent: Saturday, June 23, 2007 2:44 PM
Subject: Attribute Matrix in Tobaho



Hey Helmut;
Have you found the attribute matrix in Tobago;
ex : tc:attribute name=renderPartialy value=:page:ID/

Thanck





Re: Attribute for

2006-12-21 Thread David Delbecq
When exactly do you call getInputFor()? During rendering process?
(encodeBegin()/encondEnd())
according to specs, findComponent will not work properly if your Label
is not yet attached to it's parent NamingContainer. (form in you case),
so i would suggest to check for getInputFor only in renderer.

En l'instant précis du 12/21/06 11:44, Josué Alcalde González
s'exprimait dans toute sa noblesse:
 I am extending HtmlOutputLabel adding a * when its for component is
 required.

 I am almost successful but I am having a problem.
 The * is not rendered the first time the page is rendered.

 The problem, is that findComponent does not find the for component
 using findComponent the first time:

 [...]
 public EditableValueHolder getInputFor(){
   UIComponent uiFor = findComponent(getFor());
   if (uiFor == null || !(uiFor instanceof EditableValueHolder))
   return null;
   return (EditableValueHolder) uiFor;
 }

 [...]
 EditableValueHolder uiFor = uiLabel.getInputFor();
 if (uiFor == null || !((EditableValueHolder) uiFor).isRequired())
   return;


 [...]

 f:view
   h:form
   csa:outputLabel id=ol value=Hello world for=it/
   t:inputText id=it required=true /
   t:commandButton id=cb value=Button/
   /h:form
   t:messages /
 /f:view

 Why it is not find 


   



Re: Attribute for

2006-12-21 Thread Josué Alcalde González
El jue, 21-12-2006 a las 11:54 +0100, David Delbecq escribió:
 When exactly do you call getInputFor()? During rendering process?
 (encodeBegin()/encondEnd())
 according to specs, findComponent will not work properly if your Label
 is not yet attached to it's parent NamingContainer. (form in you case),
 so i would suggest to check for getInputFor only in renderer.

 
 

I am calling it in the method:
encodeBeforeEnd in my custom renderer.
it is a helper method in HtmlLabelRenderer which is called just before
writing the end element of the label.




Re: Attribute for

2006-12-21 Thread David Delbecq
Ok, then just check component has a parent in your getinputfor, just to
be sure. If the parent is correct, maybe, i said maybe, it's because you
are using jsp (if am not wrong, in jsp, during first rendering, the
parsing of jsp and rendering of component is done at the same time, that
mean you render your label when inputtext does not yet exist, thought i
am not certain of behaviour of JSF in jsp, this part is very tricky)

PS: if there is a parent, try to dump recursively it's children tree in
a console, it might be helpfull in debuging (and takes only a few lines
of code).
 
En l'instant précis du 12/21/06 12:00, Josué Alcalde González
s'exprimait dans toute sa noblesse:
 El jue, 21-12-2006 a las 11:54 +0100, David Delbecq escribió:
   
 When exactly do you call getInputFor()? During rendering process?
 (encodeBegin()/encondEnd())
 according to specs, findComponent will not work properly if your Label
 is not yet attached to it's parent NamingContainer. (form in you case),
 so i would suggest to check for getInputFor only in renderer.
 

   
 

 I am calling it in the method:
 encodeBeforeEnd in my custom renderer.
 it is a helper method in HtmlLabelRenderer which is called just before
 writing the end element of the label.


   



Re: Attribute for

2006-12-21 Thread Volker Weber

Hi,


are using jsp (if am not wrong, in jsp, during first rendering, the
parsing of jsp and rendering of component is done at the same time, that
mean you render your label when inputtext does not yet exist, thought i


thats exact the problem.

in jsf  1.2 the component tree is created and rendered during reading the jsp.
so the input just not exists during rendering the label component.


Re: Attribute for

2006-12-21 Thread Mario Ivankovits
Hi!
 in jsf  1.2 the component tree is created and rendered during reading
 the jsp.
should have been jsf  1.2

Ciao,
Mario



Re: Attribute for

2006-12-21 Thread Josué Alcalde González
El jue, 21-12-2006 a las 12:48 +0100, Mario Ivankovits escribió:
 Hi!
  in jsf  1.2 the component tree is created and rendered during reading
  the jsp.
 should have been jsf  1.2
 
 Ciao,
 Mario
 

Is there any solution?
I can use t:dataScroller before t:dataTable and there are no problems
with the for element.





Re: Attribute for

2006-12-21 Thread Mario Ivankovits
Hi!
 Is there any solution?
 I can use t:dataScroller before t:dataTable and there are no problems
 with the for element.
   

Hmmm ... did you put your dataScroller/dataTable combination within an
panelGroup, as far as I remember that helped.

Though, don't you have any problems with the dataScroller BEFORE the table?
According to [1]  this is not possible and requires t:buffer to
workaround. Well, it is possible, but as far as I remember the output is
always one page too late.

Ciao,
Mario


[1] http://www.irian.at/myfaces/buffer.jsf



Re: Attribute for

2006-12-21 Thread David Delbecq
2 solutions*

1) prefer facelets over jsp (not always possible, depends on your
requirements, but faster, stronger, :p)
2) put your label after your input
3) surround your pair label/outputtext with a component that renders
it's children itself during the encodeEnd() (someone suggested panelgroup)
4) switch to JSF 1.2

* 1= alpha, 2=beta, i never went further in any development, that may
explain with i can't count further.

En l'instant précis du 12/21/06 12:55, Josué Alcalde González
s'exprimait dans toute sa noblesse:
 El jue, 21-12-2006 a las 12:48 +0100, Mario Ivankovits escribió:
   
 Hi!
 
 in jsf  1.2 the component tree is created and rendered during reading
 the jsp.
   
 should have been jsf  1.2

 Ciao,
 Mario

 

 Is there any solution?
 I can use t:dataScroller before t:dataTable and there are no problems
 with the for element.



   



Re: Attribute for

2006-12-21 Thread Josué Alcalde González
El jue, 21-12-2006 a las 13:25 +0100, Mario Ivankovits escribió:
 Hi!
  Is there any solution?
  I can use t:dataScroller before t:dataTable and there are no problems
  with the for element.

 
 Hmmm ... did you put your dataScroller/dataTable combination within an
 panelGroup, as far as I remember that helped.

It helps, and helps a lot. That's why dataScroller works well.
Thanks for your help.


 Though, don't you have any problems with the dataScroller BEFORE the table?
 According to [1]  this is not possible and requires t:buffer to
 workaround. Well, it is possible, but as far as I remember the output is
 always one page too late.
 
I had it in a panelGroup, so there was no problem, but I didn't remember
it was necessary.

 Ciao,
 Mario
 
 
 [1] http://www.irian.at/myfaces/buffer.jsf
 
 




Re: Attribute for

2006-12-21 Thread Jeff Bischoff

Mario,

This buffer workaround is not needed, when using the panelGroup 
workaround (or any container which renders its children). I have had 
absolutely no problems with datascrollers both above and below the 
dataTable, using panelGroup. :)


Regards,

Jeff Bischoff
Kenneth L Kurz  Associates, Inc.

Mario Ivankovits wrote:

Hi!

Is there any solution?
I can use t:dataScroller before t:dataTable and there are no problems
with the for element.
  


Hmmm ... did you put your dataScroller/dataTable combination within an
panelGroup, as far as I remember that helped.

Though, don't you have any problems with the dataScroller BEFORE the table?
According to [1]  this is not possible and requires t:buffer to
workaround. Well, it is possible, but as far as I remember the output is
always one page too late.

Ciao,
Mario


[1] http://www.irian.at/myfaces/buffer.jsf









RE: Attribute 'for' is not defined

2006-09-14 Thread L Frohman



Why do you have

h:outputLabel value=" " 
styleClass="rightDescription"/
without a for=""?
Can't this just be h:outputText ... 
?


From: Feris Thia [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 14, 2006 8:20 AMTo: MyFaces 
DiscussionSubject: Attribute 'for' is not 
defined
Dear All,I have warning in Tomcat console like this 
:WARNING: 
Attribute 'for' of label component with id myform:_idJsp96 is not 
defined 
in my jsp file which is below. What's wrong with my jsp code 
?!DOCTYPE 
HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" 
%%@ taglib uri="http://java.sun.com/jsf/html " 
prefix="h" %%@ taglib uri="http://myfaces.apache.org/tomahawk" 
prefix="t"%f:viewf:loadBundle basename=" properties.phi" 
var="prop"/HTMLHEADTITLEh:outputText 
value="#{prop.appTitle}"//TITLElink rel="stylesheet" 
type="text/css" href="" / 
/HEADBODYjsp:include 
page="/include/header.jsp"/h:form 
id="myform"h:panelGrid columns="1" width="100%" border="0" 
 f:loadBundle 
basename="org.apache.myfaces.examples.resource.example_messages" 
var="example_messages"/ h:panelGrid 
columns="3" border="0"  
h:outputText value="Kata Kunci : " styleClass="labelSearch"/ 
  h:inputText 
binding="#{searchBean.searchInputText}" 
styleClass="textSearch"/  
  h:commandButton 
id="validateButton" type="submit" value="Cari" actionListener="#{ 
searchBean.doSearch}" styleClass="searchButton"/ 
 h:panelGroup / 
 h:panelGroup / 
 h:panelGroup / 
/h:panelGrid h:panelGrid columns="2" 
columnClasses="set_to_top1,set_to_top2" width="100%" border="0" 
 h:panelGroup 
id="body" t:dataTable 
id="data" 
styleClass="searchTable" 
headerClass="standardTable_Header" 
footerClass="standardTable_Header" 
 
rowClasses="standardTable_Row1,standardTable_Row2" 
columnClasses="standardTable_ColumnCentered,standardTable_ColumnCentered,standardTable_ColumnCentered,standardTable_ColumnCentered" 
 
var="docs" 
value="#{mydocs.data}" 
preserveDataModel="true" 
rows="10" 
binding="#{ 
mydocs.objHTMLDataTable}" 
 
h:column 
f:facet name="header"  
   h:outputText 
value="ID" 
/ 
/f:facet 
 
h:outputText value="#{docs.documentID}" 
/ 
/h:column 
 
h:column 
f:facet 
name="header" 
h:outputText value="#{ prop.documentNameLabel}" 
/ 
/f:facet 
h:outputText value="#{docs.documentName}" 
/ 
/h:column 
h:column 
f:facet 
name="header" 
h:outputText value="#{prop.fileNameLabel}" 
/ 
/f:facet 
h:outputText value="#{ docs.fileName}" 
/ 
/h:column  
 h:column  
  f:facet 
name="header"   
 h:outputText 
value="Detail"/   
 /f:facet  
  h:commandLink 
action=""  
   h:outputText 
value="Detail" styleClass="HSButton"/ 
f:param 
name="rowID" value="#{docs.documentID}"/ 
f:param 
name="indexID" value="#{docs.indexID}"/ 
f:param 
name="keyword" value="#{ searchBean.searchInputText}"/ 
   
/h:commandLink  
 
/h:column 
/t:dataTable 
h:panelGrid columns="1" styleClass="contentTable" 
columnClasses="standardTable_ColumnCentered" width="100%"  
 
t:dataScroller 
id="scroll_1" 
for="" 
fastStep="10" 
pageCountVar="pageCount" 
pageIndexVar="pageIndex" 
 
styleClass="scroller" 
paginator="true" 
paginatorMaxPages="9" 
paginatorTableClass="paginator" 
 
paginatorActiveColumnStyle="font-weight:bold;" 
immediate="true" 
 
f:facet name="first" 
 
t:graphicImage url="" border="1" 
/ 
/f:facet 
f:facet 
name="last" 
t:graphicImage url="" border="1" 
/ 
/f:facet 
f:facet 
name="previous" 
t:graphicImage url="" border="1" / 
 
/f:facet 
f:facet 
name="next" 
t:graphicImage url="" border="1" 
/ 
/f:facet 
 
f:facet 
name="fastforward" 
t:graphicImage url="" border="1" 
/ 
/f:facet 
f:facet name="fastrewind" 
 
t:graphicImage url="" border="1" 
/ 
/f:facet 
/t:dataScroller  
 h:panelGroup 
/ 
t:dataScroller 
id="scroll_2" 
for="" 
rowsCountVar="rowsCount" 
displayedRowsCountVar="displayedRowsCountVar" 
 
firstRowIndexVar="firstRowIndex" 
lastRowIndexVar="lastRowIndex" 
pageCountVar="pageCount" 
immediate="true" 
 
pageIndexVar="pageIndex"  
   
 
h:outputFormat value="#{prop['outputformat_pages']}" styleClass="standard" 
 
f:param value="#{rowsCount}" / 
 
f:param value="#{displayedRowsCountVar}" 
/ 
f:param value="#{firstRowIndex}" 
/ 
f:param value="#{lastRowIndex}" / 
 
f:param value="#{pageIndex}" 
/ 
f:param value="#{pageCount}" 
/ 
/h:outputFormat 
/t:dataScroller  
/h:panelGrid 
/h:panelGroup h:panelGroup 
id="body2" h:panelGrid 
columns="4" styleClass="scrollerTable2"  
 h:outputLabel for="" value=" " 
styleClass="rightDescription"/   
h:outputLabel for="" value="ID Dokumen" 
styleClass="rightDescription"/  
h:outputLabel for="" value=":" styleClass="rightDescription"/ 
  h:outputText id="doc_id" 
value="#{DownloadBean.documentID}" 
styleClass="theDescription"/  
h:outputLabel for="" value=" " 
styleClass="rightDescription"/   
h:outputLabel for="" 

Re: Attribute 'for' is not defined

2006-09-14 Thread Feris Thia
Hi L Frohman,It solved my problem... I don't realize that outputLabel must have 'for' attribute. Thank you very much.Regards,FerisOn 9/15/06, 
L Frohman [EMAIL PROTECTED] wrote:





Why do you have

h:outputLabel value=  
styleClass=rightDescription/
without a for="">
Can't this just be h:outputText ... 
?


From: Feris Thia [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 14, 2006 8:20 AMTo: MyFaces 
DiscussionSubject: Attribute 'for' is not 
defined
Dear All,I have warning in Tomcat console like this 
:WARNING: 
Attribute 'for' of label component with id myform:_idJsp96 is not 
defined 
in my jsp file which is below. What's wrong with my jsp code 
?!DOCTYPE 
HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN%@ taglib uri=http://java.sun.com/jsf/core
 prefix=f 
%%@ taglib uri=http://java.sun.com/jsf/html  
prefix=h %%@ taglib uri=http://myfaces.apache.org/tomahawk 
prefix=t%f:viewf:loadBundle basename= properties.phi 
var=prop/HTMLHEADTITLEh:outputText 
value=#{prop.appTitle}//TITLElink rel=stylesheet 
type=text/css href="" / 
/HEADBODYjsp:include 
page=/include/header.jsp/h:form 
id=myformh:panelGrid columns=1 width=100% border=0 
 f:loadBundle 
basename=org.apache.myfaces.examples.resource.example_messages 
var=example_messages/ h:panelGrid 
columns=3 border=0  
h:outputText value=Kata Kunci :  styleClass=labelSearch/ 
  h:inputText 
binding=#{searchBean.searchInputText} 
styleClass=textSearch/  
  h:commandButton 
id=validateButton type=submit value=Cari actionListener=#{ 
searchBean.doSearch} styleClass=searchButton/ 
 h:panelGroup / 
 h:panelGroup / 
 h:panelGroup / 
/h:panelGrid h:panelGrid columns=2 
columnClasses=set_to_top1,set_to_top2 width=100% border=0 
 h:panelGroup 
id=body t:dataTable 
id=data 
styleClass=searchTable 
headerClass=standardTable_Header 
footerClass=standardTable_Header 
 
rowClasses=standardTable_Row1,standardTable_Row2 
columnClasses=standardTable_ColumnCentered,standardTable_ColumnCentered,standardTable_ColumnCentered,standardTable_ColumnCentered 
 
var=docs 
value=#{mydocs.data} 
preserveDataModel=true 
rows=10 
binding=#{ 
mydocs.objHTMLDataTable} 
 
h:column 
f:facet name=header  
   h:outputText 
value=ID 
/ 
/f:facet 
 
h:outputText value=#{docs.documentID} 
/ 
/h:column 
 
h:column 
f:facet 
name=header 
h:outputText value=#{ prop.documentNameLabel} 
/ 
/f:facet 
h:outputText value=#{docs.documentName} 
/ 
/h:column 
h:column 
f:facet 
name=header 
h:outputText value=#{prop.fileNameLabel} 
/ 
/f:facet 
h:outputText value=#{ docs.fileName} 
/ 
/h:column  
 h:column  
  f:facet 
name=header   
 h:outputText 
value=Detail/   
 /f:facet  
  h:commandLink 
action="">  
   h:outputText 
value=Detail styleClass=HSButton/ 
f:param 
name=rowID value=#{docs.documentID}/ 
f:param 
name=indexID value=#{docs.indexID}/ 
f:param 
name=keyword value=#{ searchBean.searchInputText}/ 
   
/h:commandLink  
 
/h:column 
/t:dataTable 
h:panelGrid columns=1 styleClass=contentTable 
columnClasses=standardTable_ColumnCentered width=100%  
 
t:dataScroller 
id=scroll_1 
for=""> 
fastStep=10 
pageCountVar=pageCount 
pageIndexVar=pageIndex 
 
styleClass=scroller 
paginator=true 
paginatorMaxPages=9 
paginatorTableClass=paginator 
 
paginatorActiveColumnStyle=font-weight:bold; 
immediate=true 
 
f:facet name=first 
 
t:graphicImage url="" border=1 
/ 
/f:facet 
f:facet 
name=last 
t:graphicImage url="" last.gif border=1 
/ 
/f:facet 
f:facet 
name=previous 
t:graphicImage url="" border=1 / 
 
/f:facet 
f:facet 
name=next 
t:graphicImage url="" border=1 
/ 
/f:facet 
 
f:facet 
name=fastforward 
t:graphicImage url="" border=1 
/ 
/f:facet 
f:facet name=fastrewind 
 
t:graphicImage url="" border=1 
/ 
/f:facet 
/t:dataScroller  
 h:panelGroup 
/ 
t:dataScroller 
id=scroll_2 
for=""> 
rowsCountVar=rowsCount 
displayedRowsCountVar=displayedRowsCountVar 
 
firstRowIndexVar=firstRowIndex 
lastRowIndexVar=lastRowIndex 
pageCountVar=pageCount 
immediate=true 
 
pageIndexVar=pageIndex  
   
 
h:outputFormat value=#{prop['outputformat_pages']} styleClass=standard 
 
f:param value=#{rowsCount} / 
 
f:param value=#{displayedRowsCountVar} 
/ 
f:param value=#{firstRowIndex} 
/ 
f:param value=#{lastRowIndex} / 
 
f:param value=#{pageIndex} 
/ 
f:param value=#{pageCount} 
/ 
/h:outputFormat 
/t:dataScroller  
/h:panelGrid 
/h:panelGroup h:panelGroup 
id=body2 h:panelGrid 
columns=4 styleClass=scrollerTable2  
 h:outputLabel for="" value=  
styleClass=rightDescription/   
h:outputLabel for="" value=ID Dokumen 
styleClass=rightDescription/  
h:outputLabel for="" value=: styleClass=rightDescription/ 
  h:outputText id=doc_id 
value=#{DownloadBean.documentID} 
styleClass=theDescription/  
h:outputLabel for="" value=  
styleClass=rightDescription/   
h:outputLabel for="" value=Nama File 
styleClass=rightDescription/