Re: Help Needed For JSFFramework Documentation

2006-07-23 Thread Kapil Kataria
try to open the file using index.faces 
 
It will Work 
 
-
Kapil  
 
On 7/21/06, nimisha sharma <[EMAIL PROTECTED]> wrote:


I tried to import the project given on springframework.org.. it doesnt seem to work. it gets deployed but 
index.jsp cannot be accessed.
there is not faces servlet!!
I too need help in this...
 
Regards,

Nimisha. 

On 7/21/06, Kapil Kataria <
[EMAIL PROTECTED]> wrote: 

Hi I need to create an application Using My Faces (JSF) and spring I am haven;t created any base framework using these technologies.If any one have some application working on these technologies.Please
 mail me Framework documentation >it will help me to design a new framework.Please mail me (
 [EMAIL PROTECTED]) documentation for any application working with JSF and spring.  Thanks In Advance-- Regards, 
Kapil kataria -- Regards,Kapil kataria 


Re: JSF-RI, ADF, MyFaces, Facelets. I'm lost.

2006-07-23 Thread Kapil Kataria
Hi Cyrille,  
 
You can go Further with 
 
Spring + JSF + Hybernate + WebServices
 
They shall fullfill your application requirement easily 
 
You can use IOC from Spring and Hybernate Compatibilty for Database Connectivity from Spring
 
For UI use JSF My Faces. 
 
For Build Use Maven 
 
Use can even use portlets from WebLogic 
 
 
Even I'm Looking to create a new web applictaion using these technologies 
 
 
Do You have some alertnatives or some design which you have created, Please mail me if you have some
 
regards 
Kapil K 
On 7/19/06, Cyrille37 <[EMAIL PROTECTED]> wrote:
Hello,There are few projects around JSF that make me lost. I've to make achoice to start the study of a future project, it's time for me to
select technologies.At first, I've to choice a Application Framework. Choices are Spring,Tapestry.Then a GUI Framework. Here is my problem, JSF is in spotlight so looksto be a good choice, but there are several projects and I could not make
my choice.Have you got an opinion which could light me ??Thanks you very much.cyrille.-- Regards,Kapil kataria 


Re: multi column/row header with t:dataTable

2006-07-23 Thread nimisha sharma
Hi Kuni,
 
What i meant was that whereever you have 
 
                 ...    
in  , you will have an attribute columnClasses, you can just set that to columnClasses="col1, col2"
 and in ur stylesheet, you can have
 .col1{
width=x%
}
 
I have done the same where i needed to give my own table layout.
I just hope it helps you..
 
Regards,
Nimisha.
 
On 7/21/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
I think that maybe the trinidad table has colspan support (not surethough, I haven't tried it yet)
-AndrewOn 7/21/06, Kuni <[EMAIL PROTECTED]> wrote:> Hello Nimisha,>> thanks for your answer. using css to define the table-layout is a nice
> idea but it is in my case inapplicable. let me describe my problem:>> i have a single page with a> <:jsp:include page="<%= fileToIncludeRequestParameter> %>"/>
>> component. including file contains a t:dataTable component. This is my> way to load 'dynamic' datatables with a specific table-layout. the> layout is basicly as shown below. The css proposal implies to much css
> defs..>> i cannot believe that there is now way to define a layout with > and  tags> like:> > 
> > >  ...> > >>> hopefully regards,> Kuni
 >> nimisha sharma schrieb:
> > i am not sure on how much this would help you, but here goes my view:> > If you want to use something for colspan, specify the width of the> > columns in your .css file and just use those class names in the
> > columnClass attribute of datatable. That is how i could change the> > width of my columns in a tree table..> >> > Regards,> > Nimisha.> >> >> > On 7/21/06, *Kuni* <
[EMAIL PROTECTED]> > [EMAIL PROTECTED]>> wrote:> >> > Hello,
> >> > i'm try to create a table using t:dataTable with a multi column/row> > table header. is it possible to create a 'complex' header with> > colspan'> > look a like to group the content?  i'm going crazy .. no try really
> > works. i need something like that:> >> > | group haeder | group> > haeder2 |> > |header1 | header2| header3 |header21 | header22 header23 |
> > > > |content1| content2|content3 |content21| content22|content23 |> >> >> > any ideas?> > ...does anybody knows why this feature is not supported by JSF???
> >> > thanks for help!!> > Kuni> >> >> >> >>>


Re: What does this error mean?

2006-07-23 Thread Bill Schneider

Hello!

What does this error mean:

/pages/admin/references/services/edit.xhtml @72,0 
value="#{serviceform.periodicService.price}": Exception setting property price 
of base with class ru.tagnet.beans.references.services.PeriodicService

It ocurred what I use

on h:inputText. formats.currency.2d == #,##0.00 and input field is of class 
java.math.BigDecimal


Hi Boris,
Check your server error logs to see if there is more detail from an 
underlying exception.


My guess is, f:convertNumber isn't playing nicely with the setter for 
BigDecimal, and there is a ClassCastException or NoSuchMethodException 
somewhere.


You could change your getter/setter to take/return a java.lang.Number 
instead, for example


private BigDecimal price;
public Number getPrice() {
  return price;
}
public void setPrice(Number n) {
  if (n instanceof BigDecimal)
price = (BigDecimal) n;
  } else {
price = new BigDecimal(n.doubleValue());
  }
}

that way, if the convert tries to pass in a Double instead, it gets 
converted in your setter.


hope this helps,

-- Bill
--
Bill Schneider
Chief Architect

Vecna Technologies, Inc.
5004 Lehigh Road
College Park, MD 20740
[EMAIL PROTECTED]
t: 240-737-1640
f: 301-699-3180


Re: breadcrumb navigation ---> configuring existing webapp for adf-trinidad

2006-07-23 Thread Kuni

hey matthias,

thanks for your fast help!! i solved the problem by setting

   
   
   org.apache.myfaces.adf.CLIENT_STATE_METHOD
   
   all
   

i've to analyze the results of  property in the nexnt time..


Matthias Wessendorf schrieb:

Try to look at
http://svn.apache.org/viewvc/incubator/adffaces/trunk/adf-faces/adf-faces-demo/src/main/webapp/WEB-INF/web.xml?view=markup 



and please move Trinidad/ADF related questions to the 
adffaces-incubator list.

thx,
matt

On 7/23/06, Kuni <[EMAIL PROTECTED]> wrote:

greetings back to from germany :-)

the build was quite easy. i've installed the dependencies into my local
repository. but
i have a litte problem so configure my webapp. tomcat always sais:

24.07.2006 00:13:44
org.apache.myfaces.adfinternal.application.StateManagerImpl restoreView
SCHWERWIEGEND: Could not find saved view state for token
H4sIAAFIALf/POmn19M74tfCuzLrUbFMEp9
nT0YtjFPRtsa95hdFeQwi9sVb14EbvVe/0VUI/tYqeK9ofBXQ1UTeSBM88wxc2IVJHwg3A6u6Yb0cDkg= 


[webreport-finance] [ERROR] 2006-07-24 00:13:44
HtmlResponseStateManager.writeState(): No component
states to be saved in client response!

i don't changed any related stuff in my app. i only added



org.apache.myfaces.adf.USE_APPLICATION_VIEW_CACHE

false



org.apache.myfaces.adf.CHECK_FILE_MODIFICATION

true



org.apache.myfaces.adf.CHANGE_PERSISTENCE

session
and 
adfFaces

org.apache.myfaces.adf.webapp.AdfFacesFilter




adfFaces
Faces Servlet


to my web.xml and also i added the adf-faces-config.xml to my web-inf 
dir.

what else??

i simply try to use the  component.

regards,
Kuni



Matthias Wessendorf schrieb:
>>
>> i'll try to build trinidad myself
>
> no big deal w/ maven :) After the mentioned renaming and some
> repackaging (getting rid of "adf" inside the namespaces/packages,
> we'll ask the incubator_pmc for a "milestone" release.
>
> greetings to berlin :)
>
> HTH,
> Matthias
>
>









Re: breadcrumb navigation ---> configuring existing webapp for adf-trinidad

2006-07-23 Thread Matthias Wessendorf

Try to look at
http://svn.apache.org/viewvc/incubator/adffaces/trunk/adf-faces/adf-faces-demo/src/main/webapp/WEB-INF/web.xml?view=markup

and please move Trinidad/ADF related questions to the adffaces-incubator list.
thx,
matt

On 7/23/06, Kuni <[EMAIL PROTECTED]> wrote:

greetings back to from germany :-)

the build was quite easy. i've installed the dependencies into my local
repository. but
i have a litte problem so configure my webapp. tomcat always sais:

24.07.2006 00:13:44
org.apache.myfaces.adfinternal.application.StateManagerImpl restoreView
SCHWERWIEGEND: Could not find saved view state for token
H4sIAAFIALf/POmn19M74tfCuzLrUbFMEp9
nT0YtjFPRtsa95hdFeQwi9sVb14EbvVe/0VUI/tYqeK9ofBXQ1UTeSBM88wxc2IVJHwg3A6u6Yb0cDkg=
[webreport-finance] [ERROR] 2006-07-24 00:13:44
HtmlResponseStateManager.writeState(): No component
states to be saved in client response!

i don't changed any related stuff in my app. i only added



org.apache.myfaces.adf.USE_APPLICATION_VIEW_CACHE

false



org.apache.myfaces.adf.CHECK_FILE_MODIFICATION

true



org.apache.myfaces.adf.CHANGE_PERSISTENCE

session
and 
adfFaces

org.apache.myfaces.adf.webapp.AdfFacesFilter




adfFaces
Faces Servlet


to my web.xml and also i added the adf-faces-config.xml to my web-inf dir.
what else??

i simply try to use the  component.

regards,
Kuni



Matthias Wessendorf schrieb:
>>
>> i'll try to build trinidad myself
>
> no big deal w/ maven :) After the mentioned renaming and some
> repackaging (getting rid of "adf" inside the namespaces/packages,
> we'll ask the incubator_pmc for a "milestone" release.
>
> greetings to berlin :)
>
> HTH,
> Matthias
>
>





--
Matthias Wessendorf

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


Re: breadcrumb navigation ---> configuring existing webapp for adf-trinidad

2006-07-23 Thread Kuni

greetings back to from germany :-)

the build was quite easy. i've installed the dependencies into my local 
repository. but

i have a litte problem so configure my webapp. tomcat always sais:

24.07.2006 00:13:44 
org.apache.myfaces.adfinternal.application.StateManagerImpl restoreView
SCHWERWIEGEND: Could not find saved view state for token 
H4sIAAFIALf/POmn19M74tfCuzLrUbFMEp9

nT0YtjFPRtsa95hdFeQwi9sVb14EbvVe/0VUI/tYqeK9ofBXQ1UTeSBM88wxc2IVJHwg3A6u6Yb0cDkg=
[webreport-finance] [ERROR] 2006-07-24 00:13:44 
HtmlResponseStateManager.writeState(): No component

states to be saved in client response!

i don't changed any related stuff in my app. i only added

   
   
   org.apache.myfaces.adf.USE_APPLICATION_VIEW_CACHE
   
   false
   
   
   
   org.apache.myfaces.adf.CHECK_FILE_MODIFICATION
   
   true
   
   
   
   org.apache.myfaces.adf.CHANGE_PERSISTENCE
   
   session
   and 
   adfFaces
   
   org.apache.myfaces.adf.webapp.AdfFacesFilter
   
   

   
   adfFaces
   Faces Servlet
   

to my web.xml and also i added the adf-faces-config.xml to my web-inf dir.
what else??

i simply try to use the  component.

regards,
Kuni



Matthias Wessendorf schrieb:


i'll try to build trinidad myself


no big deal w/ maven :) After the mentioned renaming and some
repackaging (getting rid of "adf" inside the namespaces/packages,
we'll ask the incubator_pmc for a "milestone" release.

greetings to berlin :)

HTH,
Matthias






Re: breadcrumb navigation

2006-07-23 Thread Matthias Wessendorf


i'll try to build trinidad myself


no big deal w/ maven :) After the mentioned renaming and some
repackaging (getting rid of "adf" inside the namespaces/packages,
we'll ask the incubator_pmc for a "milestone" release.

greetings to berlin :)

HTH,
Matthias


Re: breadcrumb navigation

2006-07-23 Thread Kuni

the people.apache doesn't work... look at mvn output:

Downloading: 
http://snapshots.maven.codehaus.org/maven2//org/apache/myfaces/adf/adf-faces/incubator-m1-SNAPSHOT/adf-faces-incubator-m1-SNAPSHOT.pom
[WARNING] Unable to get resource from repository Maven Snapshots 
(http://snapshots.maven.codehaus.org/maven2/)
Downloading: 
http://myfaces.zones.apache.org/dist/maven-repository/org/apache/myfaces/adf/adf-faces/incubator-m1-SNAPSHOT/adf-faces-incubator-m1-SNAPSHOT.pom
[WARNING] Unable to get resource from repository myfaces.staging 
(http://myfaces.zones.apache.org/dist/maven-repository)
Downloading: 
http://www.ibiblio.org/maven2/org/apache/myfaces/adf/adf-faces/incubator-m1-SNAPSHOT/adf-faces-incubator-m1-SNAPSHOT.pom
[WARNING] Unable to get resource from repository ibiblio 
(http://www.ibiblio.org/maven2)
Downloading: 
http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/adf/adf-faces/incubator-m1-SNAPSHOT/adf-faces-incubator-m1-SNAPSHOT.pom
[WARNING] Unable to get resource from repository apache.snapshots 
(http://people.apache.org/repo/m2-snapshot-repository)
[ERROR] An error occurred during dependency resolution of the following 
artifact:

   org.apache.myfaces.adf:adf-faces-api:incubator-m1-SNAPSHOT
Caused by: Unable to get dependency information: Unable to read the 
metadata file for artifact 'org.apache.myfaces.adf:adf-faces-api:jar': 
Cannot find parent: org.apache.myfaces.adf:adf-faces for proj

ect: null:adf-faces-api:jar:incubator-m1-SNAPSHOT
 org.apache.myfaces.adf:adf-faces-api:jar:incubator-m1-SNAPSHOT

from the specified remote repositories:
 Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/),
 central (http://repo1.maven.org/maven2),
 ibiblio (http://www.ibiblio.org/maven2),
 apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
 myfaces.staging (http://myfaces.zones.apache.org/dist/maven-repository)


i'll try to build trinidad myself

Matthias Wessendorf schrieb:

Try that repository

http://people.apache.org/repo/m2-snapshot-repository


Or see wiki howto build it yourself

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

-Matt

On 7/23/06, Kuni <[EMAIL PROTECTED]> wrote:

thats sounds good. it seems that trinidad has some nice components that
i'll need.
but how can i include trinidad in an existing project? maven returns
alway's an error.

here is my pom;



Maven Snapshots
http://snapshots.maven.codehaus.org/maven2/


myfaces.staging
MyFaces Staging Repository

http://myfaces.zones.apache.org/dist/maven-repository



ibiblio
ibiblio
http://www.ibiblio.org/maven2

   
 
   false
 
 
   true
 
 apache.snapshots
 Apache Snapshot Repository
 http://people.apache.org/repo/m2-snapshot-repository


...

org.apache.myfaces.core
myfaces-api
1.1.3


org.apache.myfaces.core
myfaces-impl
1.1.3


org.apache.myfaces.tomahawk
tomahawk
1.1.3


org.apache.myfaces.tomahawk
tomahawk-sandbox
1.1.3


org.apache.myfaces.adf
adf-faces-api
incubator-m1-SNAPSHOT


org.apache.myfaces.adf
adf-faces-impl
incubator-m1-SNAPSHOT




Matthias Wessendorf schrieb:
> Apache Trinidad Podling (that OS donation from Oracle)
> has such a component.
>
> Currently its name is navigationPath, but will be renamed as
> "breadCrumbs"
>
> -Matthias
>
> On 7/22/06, Kuni <[EMAIL PROTECTED]> wrote:
>> let me know if a solution exists :-)
>>
>>
>>
>> Julian Ray schrieb:
>> > This would be a good topic for the wiki.
>> >
>> > -Original Message-
>> > From: Kuni [mailto:[EMAIL PROTECTED]
>> > Sent: Saturday, July 22, 2006 7:03 AM
>> > To: MyFaces Discussion
>> > Subject: breadcrumb navigation
>> >
>> > Hello,
>> >
>> > i need a breadcrumb-navigation for my actual project. i have no
>> ideas how to
>> > realize this and i don't can find such components in the net.
>> >
>> > any ideas?
>> >
>> >
>> > thanks,
>> > kuni
>> >
>> >
>> >
>> >
>>
>>
>
>









Re: breadcrumb navigation

2006-07-23 Thread Matthias Wessendorf

Try that repository

http://people.apache.org/repo/m2-snapshot-repository


Or see wiki howto build it yourself

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

-Matt

On 7/23/06, Kuni <[EMAIL PROTECTED]> wrote:

thats sounds good. it seems that trinidad has some nice components that
i'll need.
but how can i include trinidad in an existing project? maven returns
alway's an error.

here is my pom;



Maven Snapshots
http://snapshots.maven.codehaus.org/maven2/


myfaces.staging
MyFaces Staging Repository

http://myfaces.zones.apache.org/dist/maven-repository



ibiblio
ibiblio
http://www.ibiblio.org/maven2

   
 
   false
 
 
   true
 
 apache.snapshots
 Apache Snapshot Repository
 http://people.apache.org/repo/m2-snapshot-repository


...

org.apache.myfaces.core
myfaces-api
1.1.3


org.apache.myfaces.core
myfaces-impl
1.1.3


org.apache.myfaces.tomahawk
tomahawk
1.1.3


org.apache.myfaces.tomahawk
tomahawk-sandbox
1.1.3


org.apache.myfaces.adf
adf-faces-api
incubator-m1-SNAPSHOT


org.apache.myfaces.adf
adf-faces-impl
incubator-m1-SNAPSHOT




Matthias Wessendorf schrieb:
> Apache Trinidad Podling (that OS donation from Oracle)
> has such a component.
>
> Currently its name is navigationPath, but will be renamed as
> "breadCrumbs"
>
> -Matthias
>
> On 7/22/06, Kuni <[EMAIL PROTECTED]> wrote:
>> let me know if a solution exists :-)
>>
>>
>>
>> Julian Ray schrieb:
>> > This would be a good topic for the wiki.
>> >
>> > -Original Message-
>> > From: Kuni [mailto:[EMAIL PROTECTED]
>> > Sent: Saturday, July 22, 2006 7:03 AM
>> > To: MyFaces Discussion
>> > Subject: breadcrumb navigation
>> >
>> > Hello,
>> >
>> > i need a breadcrumb-navigation for my actual project. i have no
>> ideas how to
>> > realize this and i don't can find such components in the net.
>> >
>> > any ideas?
>> >
>> >
>> > thanks,
>> > kuni
>> >
>> >
>> >
>> >
>>
>>
>
>





--
Matthias Wessendorf

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


Re: How can I create Managed Beans during runtime?

2006-07-23 Thread Hendrik Neumann
Hi Matthias,Why not adding the MB to the faces-config of your component's
faces-config.xml file?I already thought about such a solution as a "emergency plan", but I would prefer the generic solution.
A managed bean is just a simple javaBean which can be looked up fromthe VariableResolver. The method resolveVariable(faces_context,name_of_my_bean) goes through all the scopes and looks it up & returnsthe bean than. Or create's it using the ManagedBeanBuilder, if not
attached to any scope yet.So why not just creating a new object and storing it under the needed context ?like fc.getExternalContext().getSessionMap().put("fooBean", obj");
I think this were excactly the remarks I hoped for to solve my problem - thanks a lot :-)Greetings,Hendrik


Re: breadcrumb navigation

2006-07-23 Thread Kuni
thats sounds good. it seems that trinidad has some nice components that 
i'll need.
but how can i include trinidad in an existing project? maven returns 
alway's an error.


here is my pom;


   
   Maven Snapshots
   http://snapshots.maven.codehaus.org/maven2/
   
   
   myfaces.staging
   MyFaces Staging Repository
   
   http://myfaces.zones.apache.org/dist/maven-repository
   
   
   
   ibiblio
   ibiblio
   http://www.ibiblio.org/maven2
   
  

  false


  true

apache.snapshots
Apache Snapshot Repository
http://people.apache.org/repo/m2-snapshot-repository
   
   
...

   org.apache.myfaces.core
   myfaces-api
   1.1.3
   
   
   org.apache.myfaces.core
   myfaces-impl
   1.1.3
   
   
   org.apache.myfaces.tomahawk
   tomahawk
   1.1.3
   
   
   org.apache.myfaces.tomahawk
   tomahawk-sandbox
   1.1.3
   
   
   org.apache.myfaces.adf
   adf-faces-api
   incubator-m1-SNAPSHOT   
   

   
   org.apache.myfaces.adf
   adf-faces-impl
   incubator-m1-SNAPSHOT
   



Matthias Wessendorf schrieb:

Apache Trinidad Podling (that OS donation from Oracle)
has such a component.

Currently its name is navigationPath, but will be renamed as 
"breadCrumbs"


-Matthias

On 7/22/06, Kuni <[EMAIL PROTECTED]> wrote:

let me know if a solution exists :-)



Julian Ray schrieb:
> This would be a good topic for the wiki.
>
> -Original Message-
> From: Kuni [mailto:[EMAIL PROTECTED]
> Sent: Saturday, July 22, 2006 7:03 AM
> To: MyFaces Discussion
> Subject: breadcrumb navigation
>
> Hello,
>
> i need a breadcrumb-navigation for my actual project. i have no 
ideas how to

> realize this and i don't can find such components in the net.
>
> any ideas?
>
>
> thanks,
> kuni
>
>
>
>









Tree2 rebuild node expansion

2006-07-23 Thread Daniel Haensse
Dear list,

I implemented some simple code that rebuilds my tree if necessary 
(serverside). Now I would like to expand all nodes, that were previously 
expanded before the rebuild. Any idea how this could be done? 

Function that rebuilds the tree:

private void rebuildTreeData() {
   // Invalidate and rebuild tree
   this.treeModel=null;
   this.htmlTree = new HtmlTree();
   this.selectedNode=null;
   // getTreeData rebuilds the tree from scratch
   getTreeData();  
}

Any hints are appreciated.

best regards

Dani



Re: How can I create Managed Beans during runtime?

2006-07-23 Thread Matthias Wessendorf

Normally, this would be no problem, because I would define a managed-bean in
the faces-config.xml and use the createValueBinding-Method from the
ApplicationFactory to bind my JSF-Input-components to the attribute values
of my Bean.

The problem now is: I want to create an independent  JSF-component which
should be deployed in a JAR-file and which should be usable in any
JSF-Web-Application without adding specific managed-beans to the local
faces-config.xml. Therefore I need to dynamicly create a managed bean from
my "BaseProperty"-class during runtime.



Why not adding the MB to the faces-config of your component's
faces-config.xml file?



I think about something like

createManagedBean("temporaryBean", "
de.rub.swt.csseditor.model.BaseProperty", "session");
ValueBinding dynBinding =
myApplicationFactory.createValueBinding("temporaryBean.name");
cssAttributeNameInput.setValue(dynBinding);

Is this possible? What must be the content of

public void createManagedBean(String managedBeanName, String
managedBeanClass, String scope)
{
 // ???
}



A managed bean is just a simple javaBean which can be looked up from
the VariableResolver. The method resolveVariable(faces_context,
name_of_my_bean) goes through all the scopes and looks it up & returns
the bean than. Or create's it using the ManagedBeanBuilder, if not
attached to any scope yet.

So why not just creating a new object and storing it under the needed context ?
like fc.getExternalContext().getSessionMap().put("fooBean", obj");

-Matt


Any hints or ideas?

Greetings,
Hendrik




--
Matthias Wessendorf

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


Re: JSF-RI, ADF, MyFaces, Facelets. I'm lost.

2006-07-23 Thread Nicklas Karlsson
My suggestion is:MyFaces 1.1.4 (will be out soon ;)) as RuntimeTrinidad for the component set
Facelets as View instead of JSP.Speaking of this combo, does anyone  have a  simple  backing-bean-based "hello world"-war based on this combo that I could have a look at? Or should I just try to patch facelets on to the Trinidad demo app?



some sort of chaining?

2006-07-23 Thread ragsta

Hi,
there is in jsf some sort of "chaining actions" mechanism?

I mean...

I've an action method on a managed bean
and based upon the result of that method i'd like to call one of two actions
in another managed bean..

is that possible in some way?


-- 
View this message in context: 
http://www.nabble.com/some-sort-of-chaining--tf1988547.html#a5457329
Sent from the MyFaces - Users forum at Nabble.com.



How can I create Managed Beans during runtime?

2006-07-23 Thread Hendrik Neumann
Hi everybody,currently I'm developing a JSF-component which renders a set of input-elements:    public void encodeBegin(FacesContext myContext) throws IOException    {  [...]        // create input-Elements
        HtmlInputText cssAttributeNameInput = (HtmlInputText) myApp.createComponent(HtmlInputText.COMPONENT_TYPE);        HtmlInputTextarea cssAttributeDescriptionInput = (HtmlInputTextarea) myApp.createComponent(
HtmlInputTextarea.COMPONENT_TYPE);  [...]    }Now I need to bind these input-fields with this JavaBean:public class BaseProperty{    private String name;    private String description;
    public String getDescription()    {        return description;    }    public void setDescription(String description)    {        this.description = description;    }    public String getName()
    {        return name;    }    public void setName(String name)    {        this.name = name;    }}Normally, this would be no problem, because I would define a managed-bean in the 
faces-config.xml and use the createValueBinding-Method from the ApplicationFactory to bind my JSF-Input-components to the attribute values of my Bean.The problem now is: I want to create an independent  JSF-component which should be deployed in a JAR-file and which should be usable in any JSF-Web-Application without adding specific managed-beans to the local 
faces-config.xml. Therefore I need to dynamicly create a managed bean from my "BaseProperty"-class during runtime. I think about something like         createManagedBean("temporaryBean", "
de.rub.swt.csseditor.model.BaseProperty", "session");        ValueBinding dynBinding = myApplicationFactory.createValueBinding("temporaryBean.name");        cssAttributeNameInput.setValue(dynBinding);
Is this possible? What must be the content of     public void createManagedBean(String managedBeanName, String managedBeanClass, String scope)    { // ???    }Any hints or ideas?
Greetings, Hendrik


Re: EntityConverter

2006-07-23 Thread Rogerio Pereira
Wiki entry created.2006/7/23, Rogerio Pereira <[EMAIL PROTECTED]>:
Matthias and Cagatay (Validator man):Sure! I'll add to myfaces wiki.2006/7/23, Cagatay Civici <
[EMAIL PROTECTED]>:
Hi,I'm an hibernate user and cannot think of using hibernate-jsf without an entity converter. We've also written one for our project.

http://www.jroller.com/page/cenkcivici?entry=binding_made_easy_with_jsfAlso I've written a lookup data resolver to load all the data of the given class to a component as select items.As Matze said, a wiki would be great, I'll also add more Rogerio,
Regards,CagatayOn 7/23/06, Matthias Wessendorf
 <[EMAIL PROTECTED]> wrote:


Since I am not a hibernate user but thinking that can be sorta usfulfor other people,may I ask you to add this stuff to our wiki ?Thanks,On 7/22/06, Rogerio Pereira <


[EMAIL PROTECTED]> wrote:> Hi guys!>> I created a EntityConverter that get the value entered by user in a UIInput> component and when the form is submited this value is converted to an
> persistence layer entity that you can managed in you bean as u wish, can> work with persistence layers that provide a generic way to load entities, e.> g. Hibernate session.get(Class, Serializable).
>> The only thing that u need to do is create a class that implement> EntityLoader (that belongs to EntityConverter package). And inside this> class u do this:>> public Object getEntity(Class type, Serializable id) {
>> Session session = HibernateUtil.currentSession();>> Object object = session.get(type, id);>> return object;> }>> and then add this entry to your 
web.xml :>> > br.eti.faces.entityLoader>> br.gov.go.tj.scu.util.EntityLoader

> >> using in your page:>>> >  converter="#{entityConverter.entity['package.Entity;id']}">
> >var="entity" itemLabel="#{ 

entities.name}">itemValue="#{entity}" />
>  > note: package.Entity is the full class name of your entity and id is the> name of your id property in your entity with their get/set methods>> reading the submited value in your bean:
>> Entity entity = selectedEntity;>>> Uses a little of reflection but tries to do some caching on reflection stuff> to enhance performance.>> --> Yours truly (Atenciosamente),
>> Rogério--Matthias Wessendorffurther stuff:blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

-- Yours truly (Atenciosamente),Rogério

-- Yours truly (Atenciosamente),Rogério


Re: EntityConverter

2006-07-23 Thread Rogerio Pereira
Matthias and Cagatay (Validator man):Sure! I'll add to myfaces wiki.2006/7/23, Cagatay Civici <[EMAIL PROTECTED]>:
Hi,I'm an hibernate user and cannot think of using hibernate-jsf without an entity converter. We've also written one for our project.

http://www.jroller.com/page/cenkcivici?entry=binding_made_easy_with_jsfAlso I've written a lookup data resolver to load all the data of the given class to a component as select items.As Matze said, a wiki would be great, I'll also add more Rogerio,
Regards,CagatayOn 7/23/06, Matthias Wessendorf
 <[EMAIL PROTECTED]> wrote:

Since I am not a hibernate user but thinking that can be sorta usfulfor other people,may I ask you to add this stuff to our wiki ?Thanks,On 7/22/06, Rogerio Pereira <

[EMAIL PROTECTED]> wrote:> Hi guys!>> I created a EntityConverter that get the value entered by user in a UIInput> component and when the form is submited this value is converted to an
> persistence layer entity that you can managed in you bean as u wish, can> work with persistence layers that provide a generic way to load entities, e.> g. Hibernate session.get(Class, Serializable).
>> The only thing that u need to do is create a class that implement> EntityLoader (that belongs to EntityConverter package). And inside this> class u do this:>> public Object getEntity(Class type, Serializable id) {
>> Session session = HibernateUtil.currentSession();>> Object object = session.get(type, id);>> return object;> }>> and then add this entry to your 
web.xml :>> > br.eti.faces.entityLoader>> br.gov.go.tj.scu.util.EntityLoader

> >> using in your page:>>> >  converter="#{entityConverter.entity['package.Entity;id']}">
> >var="entity" itemLabel="#{ 
entities.name}">itemValue="#{entity}" />
>  > note: package.Entity is the full class name of your entity and id is the> name of your id property in your entity with their get/set methods>> reading the submited value in your bean:
>> Entity entity = selectedEntity;>>> Uses a little of reflection but tries to do some caching on reflection stuff> to enhance performance.>> --> Yours truly (Atenciosamente),
>> Rogério--Matthias Wessendorffurther stuff:blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

-- Yours truly (Atenciosamente),Rogério


Fwd: newbie question : grabbing another page bean from the session

2006-07-23 Thread Dennis Byrne

-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 23, 2006 04:42 AM
To: [EMAIL PROTECTED]
Subject: Re: newbie question : grabbing another page bean from the session

Hello Paul,

Welcome to the MyFaces community.  You want to configure your application to 
inject a reference of page2bean into page1bean.  

  
page1Bean
xxx.Page1Bean
session

 methodOnPage1Bean
 #{page2Bean}

  

I'm too lazy to look up the exact element names, but I'm sure you can find this 
on Google real quick :)

You can also grab a reference to page2bean from page1bean using

FacesContext.getCurrentInstance().getApplication().createValueBinding("#{page2bean}").getValue()

Dennis Byrne

>-Original Message-
>From: Paul Hussein [mailto:[EMAIL PROTECTED]
>Sent: Sunday, July 23, 2006 04:35 AM
>To: users@myfaces.apache.org
>Subject: newbie question : grabbing another page bean from the session
>
>Hi,
>
>I am new to MyFaces and would like to know, if I have two page beans
>
>page1bean and page2bean, they are defined in faces-config and have session
>scope
>
>  
>page1Bean
>xxx.Page1Bean
>session
>  
>  
>page2Bean
>xxx.Page2Bean
>session
>  
>
>
>I want to call some methods in page2Bean (after it has been initialized and
>loaded into the session) from page1Bean. Is there a supported way to do
>this.
>
>
>
>Thanks
>
>Paul.
>






newbie question : grabbing another page bean from the session

2006-07-23 Thread Paul Hussein
Hi,I am new to MyFaces and would like to know, if I have two page beanspage1bean and page2bean, they are defined in faces-config and have session scope  
    page1Bean
    xxx.Page1Bean
    session
  
  
    page2Bean
    xxx.Page2Bean
    session
  
I want to call some methods in page2Bean (after it has been initialized and loaded into the session) from page1Bean. Is there a supported way to do this.Thanks Paul.


What does this error mean?

2006-07-23 Thread Boris Kovalenko

Hello!

What does this error mean:

/pages/admin/references/services/edit.xhtml @72,0 
value="#{serviceform.periodicService.price}": Exception setting property 
price of base with class ru.tagnet.beans.references.services.PeriodicService


It ocurred what I use

on h:inputText. formats.currency.2d == #,##0.00 and input field is of 
class java.math.BigDecimal


P.S. 1.1.4-core-spap, 1.1.3-tomahawk

With respect,
Boris


Re: EntityConverter

2006-07-23 Thread Cagatay Civici
Hi,I'm an hibernate user and cannot think of using hibernate-jsf without an entity converter. We've also written one for our project.
http://www.jroller.com/page/cenkcivici?entry=binding_made_easy_with_jsfAlso I've written a lookup data resolver to load all the data of the given class to a component as select items.As Matze said, a wiki would be great, I'll also add more Rogerio,
Regards,CagatayOn 7/23/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
Since I am not a hibernate user but thinking that can be sorta usfulfor other people,may I ask you to add this stuff to our wiki ?Thanks,On 7/22/06, Rogerio Pereira <
[EMAIL PROTECTED]> wrote:> Hi guys!>> I created a EntityConverter that get the value entered by user in a UIInput> component and when the form is submited this value is converted to an
> persistence layer entity that you can managed in you bean as u wish, can> work with persistence layers that provide a generic way to load entities, e.> g. Hibernate session.get(Class, Serializable).
>> The only thing that u need to do is create a class that implement> EntityLoader (that belongs to EntityConverter package). And inside this> class u do this:>> public Object getEntity(Class type, Serializable id) {
>> Session session = HibernateUtil.currentSession();>> Object object = session.get(type, id);>> return object;> }>> and then add this entry to your 
web.xml :>> > br.eti.faces.entityLoader>> br.gov.go.tj.scu.util.EntityLoader
> >> using in your page:>>> >  converter="#{entityConverter.entity['package.Entity;id']}">
> >var="entity" itemLabel="#{ entities.name}">itemValue="#{entity}" />
>  > note: package.Entity is the full class name of your entity and id is the> name of your id property in your entity with their get/set methods>> reading the submited value in your bean:
>> Entity entity = selectedEntity;>>> Uses a little of reflection but tries to do some caching on reflection stuff> to enhance performance.>> --> Yours truly (Atenciosamente),
>> Rogério--Matthias Wessendorffurther stuff:blog: http://jroller.com/page/mwessendorfmail: mwessendorf-at-gmail-dot-com