[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2006-12-20 Thread dajevtic
Hi Chane,
we used Seam and Trinidad in several of our POCs. No production applications 
yet, though.
I remember that we had to incorporate an additional phase listener along with 
an action listener configured in faces-config when using the dialog framework 
of Trinidad / ADF, because the conversation id was not propagated to the 
dialog. 
Otherwise, there are no known incompatibility issues.
We even use AJAX4JSF to "ajaxify" non-ajax components.

Here is the code to get dialogs of trinidad to work w/ seam:
PhaseListener:

  | private static final String CONVERSATION_ID_SESSION_PARAMETER = 
"conversationId";
  | 
  | private Map createParameterMapForConversationRestore(String 
conversationId) {
  | Map paramterMap = new Hashtable();
  | paramterMap.put(CONVERSATION_ID_SESSION_PARAMETER, 
conversationId);
  | return paramterMap;
  | }
  | 
  | private void restoreConversation(Context context) {
  | if (context.isSet(CONVERSATION_ID_SESSION_PARAMETER)) {
  | String convId = 
context.get(CONVERSATION_ID_SESSION_PARAMETER).toString();
  | 
Manager.instance().restoreConversation(createParameterMapForConversationRestore(convId));
  | context.remove(CONVERSATION_ID_SESSION_PARAMETER);  

  | }
  | }
  | 
  | public void afterPhase(PhaseEvent event) {
  | try {
  | if (event.getPhaseId().equals(PhaseId.RESTORE_VIEW)) {
  | UIViewRoot root = 
event.getFacesContext().getViewRoot();
  | if (root != null) {
  | String viewId = root.getViewId();
  | if ((viewId != null) && 
viewId.endsWith("_dlg.jspx")) {
  | 
restoreConversation(Contexts.getSessionContext());
  | }
  | }
  | } else {
  | log.info("after " + event.getPhaseId());
  | }
  | } catch (Exception e) {
  | log.error("Could not restore Seam conversation", e);
  | }
  | }
  | 

Here is the code for the action listener:

  | public void processAction(ActionEvent actionEvent)
  | throws AbortProcessingException {
  | 
  | if (actionEvent.getComponent() instanceof CoreCommandLink) {
  | CoreCommandLink link = 
(CoreCommandLink)actionEvent.getComponent();
  | if (link.isUseWindow()) {
  | 
Contexts.getSessionContext().set("conversationId", 
Manager.instance().getCurrentConversationId());
  | }
  | }
  | super.processAction(actionEvent);
  | }
  | 
The example above assumes that popup dialogs end with a _dlg.jspx extensions, 
which you may alter to your desire.

Please remember, those were quick and dirty hacks in order to get conversations 
working with Trinidad.
This issue may have already been resolved, and if not there might be far better 
solutions.

Hope it helps.

Kind regareds,
dj

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995439#3995439

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995439
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-01-31 Thread awhitford
Does anybody know if this is still necessary with 1.1.5 GA of Seam?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009207#4009207

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009207
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-02-01 Thread petemuir
AFAIK there has been no work on the Seam codebase to improve trinidad 
integration (waiting on a release from Trinidad)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009289#4009289

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009289
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-04 Thread chane
dj - thanks for the info on dialogs.  I am just starting to incorporate the 
trinidad dialog functionality into my app.  Couple of questions if you have the 
time:

1) Did you extend/override the Seam PhaseListener or did you incorporate 
another one into the stack?

2) Same question for the ActionListener?

I have not worked with either of these, so new stuff to learn.  Would you mind 
posting an example of the faces config for these two?

Would you have an example page/config files that you could share?

I'm reading through the Trinidad docs and have not fully incorporated all of 
the pieces yet.
  - To date I have not used navigation rules, but it looks like I must for 
dialog:something to work in the commandButton action (did you find something 
else that would work?)
  - In Trinidad's example they have 



 how to bind this to the backing bean managed by seam?  Set the value as an EL 
expression?

Welloff to play with new toys!

Thanks in advance for any help,
Chris

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034778#4034778

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034778
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-04 Thread petemuir
Chris, take a look at the seamdiscs example in Seam CVS, it shows Seam, 
Trinidad, RichFaces and Ajax4jsf working together - note that it is work in 
progess (especially regarding the tables).

I've yet to use Trinidad dialogs - I'll see if I can incorporate them into the 
example somewhere.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034783#4034783

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034783
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-04 Thread chane
petemuir,

Thanks for the info.  I'll check out the seamdiscs example.  If you get 
something working with dialogs can you post here so I am sure to check.  I'll 
be checking out the Seam head tomorrow and will keep checking.

Also, are you having issues with the Trinidad tables or just trying to get them 
to work the way you want? I have been able to get them to work in my simple 
proof of concept pages.

Chris

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034854#4034854

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034854
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-05 Thread petemuir
Trinidad provides sorting and paging on it's enhanced DataModel 
(CollectionModel) - I'm working on backing this with EntityQuery (and hence the 
database) rather than doing the paging and sorting in java - I haven't finished 
this yet so there is some weird behaviour...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034918#4034918

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034918
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-05 Thread dajevtic
Hi Chane. Let's see:

"chane" wrote : 
  | 1) Did you extend/override the Seam PhaseListener or did you incorporate 
another one into the stack?
  | 

Created my own phase listener and added it in faces-config like this:

  | 
  | 
  | mypackage.MyPhaseListener
  | 
  | 
org.jboss.seam.jsf.TransactionalSeamPhaseListener
  | 
  | 

"chane" wrote : 
  | 2) Same question for the ActionListener?
  | 

Also in faces-config.xml just added:

  | mypackage.MyActionListener
  | 

"chane" wrote : 
  | I have not worked with either of these, so new stuff to learn.  Would you 
mind posting an example of the faces config for these two?
  | 
See the above samples!

"chane" wrote : 
  | Would you have an example page/config files that you could share?
  | 
I'll mix something up over the weekend, ok?!

"chane" wrote : 
  | I'm reading through the Trinidad docs and have not fully incorporated all 
of the pieces yet.
  |   - To date I have not used navigation rules, but it looks like I must for 
dialog:something to work in the commandButton action (did you find something 
else that would work?)
  | 
Unfortunately, I haven't. I use navigation rules for the dialog framework just 
like you do!

Kind regards,
dj :-)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034982#4034982

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034982
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-05 Thread dajevtic
By the way. Please remember that the Listener only checks if the action source 
is of type "CoreCommandLink"!
If you also use a "CoreCommandButton" or a somewhere then you must add the 
check for this instance as well, or just use the super class UIXCommand.
I'm not 100% sure, but if you want to make inputListOfValues work for 
conversation scope, you might have to add functionality for this as well, but 
I'll check this out this weekend, too!


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034984#4034984

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034984
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-05 Thread chane
"petemuir" wrote : Trinidad provides sorting and paging on it's enhanced 
DataModel (CollectionModel) - I'm working on backing this with EntityQuery (and 
hence the database) rather than doing the paging and sorting in java - I 
haven't finished this yet so there is some weird behaviour...


ah... very interested to take a look when you get down with it.

Chris

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035087#4035087

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035087
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-05 Thread chane
"dajevtic" wrote : By the way. Please remember that the Listener only checks if 
the action source is of type "CoreCommandLink"!
  | If you also use a "CoreCommandButton" or a somewhere then you must add the 
check for this instance as well, or just use the super class UIXCommand.
  | I'm not 100% sure, but if you want to make inputListOfValues work for 
conversation scope, you might have to add functionality for this as well, but 
I'll check this out this weekend, too!
  | 

dj,

Thanks for the replies.  That what help me get started.  I look forward to 
looking at anything you can put together this weekend if you get the chance.  
It's always nice to learn from someone who has been through it before rather 
then re-invent the wheel.

Thanks again,
Chris

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035089#4035089

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035089
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-11 Thread chane
dj-

When you created the bean that manages the dialog, did you use a Seam managed 
bean or did you create a backing bean entry in faces-config.xml?

I'm using the Seam @Name and getting a wicked error when I click on the button 
to initiate the dialog.

Thanks for any insight.

Chris

The specifics of what I'm doing are:

Facelet snippet

  |  


Dialog Manager almost verbatim from the Trinidad Dialog example.
@Name("dialogManager")
  | @Stateful
  | public class DialogManager implements IDialogManager{
  | 
  |public UIXInput getInput(){
  |   return _input;
  |}
  | 
  |public void setInput(UIXInput input){
  |   _input = input;
  |}
  | 
  |public String doLaunch(){
  |   RequestContext afContext = RequestContext.getCurrentInstance();
  |   Map process = afContext.getPageFlowScope();
  |   process.put("lastLaunch", new Date());
  | 
  |   return "dialog:chooseList";
  |}
  | 
  |public void returned(ReturnEvent event){
  |   if(event.getReturnValue() != null) {
  |  getInput().setSubmittedValue(null);
  |  getInput().setValue(event.getReturnValue());
  |   }
  |}
  |
  |@Destroy
  |@Remove
  |public void destroy(){
  |}
  | 
  |private UIXInput _input;
  | }

Error is:

  | 2007-04-11 22:22:41,562 TRACE [org.apache.myfaces.lifecycle.LifecycleImpl] 
entering restoreView in org.apache.myfaces.lifecycle.LifecycleImpl
  | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] before 
phase: RESTORE_VIEW(1)
  | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.util.Naming] JNDI 
InitialContext 
properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 2007-04-11 22:22:41,562 DEBUG 
[org.jboss.seam.jsf.AbstractSeamPhaseListener] beginning transaction prior to 
phase: RESTORE_VIEW(1)
  | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.util.Naming] JNDI 
InitialContext 
properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin 
web request
  | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.Component] instantiating Seam 
component: org.jboss.seam.core.events
  | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.Component] initializing new 
instance of: org.jboss.seam.core.events
  | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.Component] done initializing: 
org.jboss.seam.core.events
  | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.core.Events] Processing 
event:org.jboss.seam.beforePhase
  | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] 
resolving name: dialogManager
  | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] 
Seam component resolved, but unwrap method returned null
  | 2007-04-11 22:22:41,578 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] 
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
  | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] after 
phase: RESTORE_VIEW(1)
  | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] instantiating Seam 
component: org.jboss.seam.core.events
  | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] initializing new 
instance of: org.jboss.seam.core.events
  | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] done initializing: 
org.jboss.seam.core.events
  | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.core.Events] Processing 
event:org.jboss.seam.afterPhase
  | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] instantiating Seam 
component: org.jboss.seam.core.manager
  | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] initializing new 
instance of: org.jboss.seam.core.manager
  | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] done initializing: 
org.jboss.seam.core.manager
  | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] instantiating Seam 
component: org.jboss.seam.core.events
  | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] initializing new 
instance of: org.jboss.seam.core.events
  | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] done initializing: 
org.jboss.seam.core.events
  | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] instantiating Seam 
component: org.jboss.seam.core.events
  | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] initializing new 
instance of: org.jboss.seam.core.events
  | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] done initializing: 
org.jboss.seam.core.events
  | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.core.Events] Processing 
event:org.jboss.seam.preSetVariable.org.jboss.seam.core.manager
  | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] instantiating Seam 
component: org.jboss.seam.core.events
  | 2007-04-11 22:22:41,578 DEBUG [or

[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-12 Thread dajevtic
Hi Chane.
Try adding @Scope(ScopeType.CONVERSATION) to the class.
That should do the trick.
If not let me know and I'll try your code myself.

Regards,
dj

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036619#4036619

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036619
___
jboss-user mailing list
[EMAIL PROTECTED]
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-13 Thread chane

I'm pretty sure the Conversation scope is added to Stateful components 
automatically.  Anyway, I added it explicitly to see if that had any affect and 
I still get the same error.

Maybe I should back up a step and prepare a simple application that I could 
upload so that people could take a look.  We could then work off of a common 
sample.

Chris

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037243#4037243

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037243
___
jboss-user mailing list
[EMAIL PROTECTED]
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-13 Thread chane
ok  - I put together a sample application that can be downloaded here:

http://sourceforge.net/project/showfiles.php?group_id=189858&package_id=228602&release_id=500974

This is an eclipse 3.1 project that is ready to go.  Download the file, create 
the project in eclipse, change the build-properties for your jboss directory 
and then run the ant target "deploy".

Navigate to http://localhost:8080/testApp.  The main page will be displayed, 
click the button "Start dialog" and you will get the error in the jboss server 
window that I list previously in the thread.

Any ideas on what to do next or how I have misconfigued would be appreciated.  
Also, the only thing I left out was the custom ActionListener (but I don't 
think that is the cause of this error).

Thanks for any help,
Chris



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037270#4037270

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037270
___
jboss-user mailing list
[EMAIL PROTECTED]
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-14 Thread chane
dj - thanks for your help and writing the code you posted very early in this 
discussion. I finally got it to work.

The trick is that the component that is the target for the binding element on 
the  can not be a 
Conversation Scoped Component.  Once I took off the @Stateful annotation and 
just had @Name, everything started to fall into place.

And a big thanks to cbauer.  I finally figured this out by reading a comment he 
put on the example wiki UIBinding component about bindings not working with @In 
or conversation scoped components.

Thanks,
Chris

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037346#4037346

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037346
___
jboss-user mailing list
[EMAIL PROTECTED]
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-15 Thread dajevtic
chane,
I'm glad you got it sorted out.
However, you might want to consider not using bindings at all. To me they are 
actually the most useless feature of JSF...
I actually didn't quite figure out why you are using the bindings at all?!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037356#4037356

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037356
___
jboss-user mailing list
[EMAIL PROTECTED]
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-15 Thread chane

I was using the bindings more because that was the example of how to use the 
dialogs with the Trinidad documentation.

If I didn't want to use bindings (which I don't really have a preference), how 
can I update the field on the calling page from the dialog selection.  How do 
you use dialogs?

The use case is:
 - open an edit screen (conversation start)
 - fill in some information
 - click an icon to popup a "lookup" window
 - select a value  - which fills in the value on the calling window
 - fill in remaining info
 - save button (persist objects / end conversation)

Right now we are using our home grown javascript to do the lookup.  I thought 
we could replace it with the Trinidad dialog stuff - particularly since we are 
going to be using that component framework.

Chris

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037386#4037386

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037386
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-15 Thread dajevtic
Mainly I use the following class for consistent dialog handling for trinidad:
package de.livemediagroup.dialog;
  | 
  | import java.util.Hashtable;
  | import java.util.Map;
  | 
  | import org.apache.myfaces.trinidad.context.RequestContext;
  | import org.apache.myfaces.trinidad.event.ReturnEvent;
  | 
  | public final class Dialog {
  | 
  | public static final String CONFIRM = "confirm";
  | 
  | public static final String CANCEL = "cancel";
  | 
  | public static Map createReturnParameterMap() {
  | return new Hashtable();
  | }
  | 
  | @SuppressWarnings("unchecked")
  | public static void cancelDialog() {
  | RequestContext.getCurrentInstance().returnFromDialog(CANCEL, 
createReturnParameterMap());
  | }
  | 
  | @SuppressWarnings("unchecked")
  | public static void confirmDialog(Map returnParameters) {
  | RequestContext.getCurrentInstance().returnFromDialog(CONFIRM, 
returnParameters);
  | }
  | 
  | public static boolean isConfirmed(ReturnEvent event) {
  | Object returnValue = event.getReturnValue();
  | return ((returnValue != null) && 
(returnValue.equals(CONFIRM)));
  | }
  | 
  | public static boolean isCanceled(ReturnEvent event) {
  | Object returnValue = event.getReturnValue();
  | return ((returnValue == null) || (returnValue.equals(CANCEL))); 

  | }
  | 
  | }
  | 

when wanting to confirm a dialog i use the following code:

  | public void saveUser() {
  | Map returnParameters = Dialog.createReturnParameterMap();
  | returnParameters.put("user", currentUserInformation);
  | Dialog.confirmDialog(returnParameters);
  | }
  | 

a return listener gets activated when returning from my dialog:

  | public void processReturn(ReturnEvent event)
  | throws AbortProcessingException {
  | if (!Dialog.isCanceled(event)) {
  | for (Object object : 
event.getReturnParameters().values()) {
  | PersistableObject pObject = (PersistableObject) 
object;
  | saveObject(pObject);
  | getEntityManager().flush();
  | }
  | refresh();
  | getNotifier().notifyDialogEnd();
  | }
  | clearHandledEntity();
  | }
  | 

The snippet that activates the dialog, e.g.:

  | 
  | 
  | 
  | 

getNotifier is a simple, yet powerful goodie, because PPR updates can only 
occur on components that are below my triggering component. My Notifier is the 
first UI component so when I trigger it I can also PPR components which are 
before my commandLink that triggers the dialog.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037388#4037388

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037388
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-27 Thread smithbstl
Chris, I am also having problems getting dialogs to work with Seam, could you 
post a working example since you seem to have gotten it working?  It would 
really help to see all the pieces together in one place.

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041544#4041544

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041544
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-04-30 Thread chane
I don't have a sample I can post.  But I'll help you through it if I can.  
There might even be a better way.  Here's what I did/know:

1) I used the classes dajevtic posted at the start of this thread.  

- The ActionListener needs to be a subclass of the one provided by MyFaces or 
the Sun RI.  If you know another way to plug-in an ActionListener, let me know.

- The PhaseListener is a new class

- Also, I changed the conversationID to be cid (which I believe is what 2.1.0 
is using now)

2) Actually, that's pretty much it.  The only other thing is: Do not use the 
"binding" attribute on any components.  If you do, this (and a lot of other 
stuff) will not work.  What I do is something like the following:

Component on xhtml (facelets) page:

  |
  |

Backing Bean:

  |public String launch(){
  |   return "dialog:pageName";
  |}
  | 
  |public void returnProduct(ReturnEvent event){
  |   bean.setProperty((String)event.getReturnValue());
  |}

And then you need a faces-config.xml navigation entry (I have not tried this in 
pages.xml yet):

  | 
  |/*
  |
  |
  |   dialog:pageName
  |   /path/page_dlg.its
  |
  | 

Let me now if this works for you,
Chris

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041845#4041845

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041845
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-01 Thread smithbstl
Thanks Chris, I have it most of the way working except for a couple of issues.

1.  When i use a commandLink to open the dialog, I can't get PPR to refresh the 
inputText on the orginal page.  I keep getting this message

ERROR [STDERR] May 1, 2007 9:11:57 AM 
org.apache.myfaces.trinidadinternal.renderkit.core.ppr.PPRResponseWriter$PPRTag 
finish
  | WARNING: No PPR-capable id found for elements of 
CoreInputText[UIXEditableFacesBeanImpl, id=customer_input]. This component has 
not written-out an id attribute.

customer_input is the inputText I wish to pass the value from the dialog back 
to.

Here is the relevant part of the page

  | 
  |
  | 

2.  When I use a tr:inputListOfValues component instead (it encapsulates all 
the functionality I need) the object I hand back to the page is getting its 
toString method called instead of correctly referencing a property of the object


  | 

The userName property is not being referenced at all and instead the toString 
method of the customer object is being called instead.  It really makes no 
sense.  I have outputed the customer object's properties to the console during 
the ActionEvent of the dialog and again during ReturnListener of the calling 
form so I know the object is being passed correctly, its just the value 
property of the inputListOfValues is being weird.

Thanks for any help.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042097#4042097

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042097
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-01 Thread chane
"smithbstl" wrote : Thanks Chris, I have it most of the way working except for 
a couple of issues.
  | 
  | 1.  When i use a commandLink to open the dialog, I can't get PPR to refresh 
the inputText on the orginal page.  I keep getting this message
  | 
  | ERROR [STDERR] May 1, 2007 9:11:57 AM 
org.apache.myfaces.trinidadinternal.renderkit.core.ppr.PPRResponseWriter$PPRTag 
finish
  |   | WARNING: No PPR-capable id found for elements of 
CoreInputText[UIXEditableFacesBeanImpl, id=customer_input]. This component has 
not written-out an id attribute.
  | 
  | customer_input is the inputText I wish to pass the value from the dialog 
back to.
  | 
  | Here is the relevant part of the page
  | 
  |   | 
  |   |
  |   | 
  | 

I use a returnListener on my command link.  That is what sets the value on my 
backing bean.  I then have the backing bean provide the value to the input box. 
 That might be it?  If there isn't a backing bean on the value, how is the 
framework going to know what to update (also, don't using the binding attribute 
on inputbox - will not work - there is another thread talking about this).

As for the error, I don't know.  You might ask on the trinidad list (which is 
now the myfaces list since it got "promoted").

Also, I have not used the  tag.  If you use this, 
does it mean you don't have to have the custom ActionListener and PhaseListener?

"smithbstl" wrote : 
  | 2.  When I use a tr:inputListOfValues component instead (it encapsulates 
all the functionality I need) the object I hand back to the page is getting its 
toString method called instead of correctly referencing a property of the object
  | 
  | 
  |   | 
  | 
  | The userName property is not being referenced at all and instead the 
toString method of the customer object is being called instead.  It really 
makes no sense.  I have outputed the customer object's properties to the 
console during the ActionEvent of the dialog and again during ReturnListener of 
the calling form so I know the object is being passed correctly, its just the 
value property of the inputListOfValues is being weird.
  | 

hmmm...that does sound strange.  I would ask on the Trinidad list.  I tried to 
use inputListOfValues also but ran into problems trying to make it readonly so 
I gave up trying to use it for now.  Altough, it almost sounds like it is a 
Seam issue and can not find the properties correctly.  Can you get the 
"userName" by using ?

Wish I could help more.  If you figure it out, you might post here so others 
trying to do something similar can learn from your efforts.

Chris

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042196#4042196

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042196
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-01 Thread smithbstl
Thanks Chris,  I have a return listener already which is functioning correctly, 
just not the PPR to refresh the page

public void processReturn(ReturnEvent event) {
  | if (event.getReturnValue() != null) {
  | //setUserName(((User)(event.getReturnValue())).getUserName());
  | customer = ((User)(event.getReturnValue()));
  | System.out.println("***Return Event");
  | System.out.println("User Name: " + customer.getUserName());
  | }
  | }

As far as the s:conversationPropagation tag, yeah, thats kind of what I am 
attempting, no definitive results yet since I can't get the whole thing working 
with the custom PhaseListener/ActionListener.

I think I may steer clear of the inputListOfValues since it hides a little too 
much magic.  The inputListOfValues code from my previous post is blowing up 
because customer is null when the page loads (NPE).

If I have any luck I will post back here.

ps - I made a post to the Trinidad List but no responses yet, I don't know if 
everying is using the new list yet ([EMAIL PROTECTED]).  I am afraid more posts 
will get overlooked since that list services Myfaces, Tomahawk, Tobago, and now 
Trinidadugh

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042216#4042216

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042216
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-01 Thread dajevtic
Hi. Have you ever tried placing your to-be-updated tags into a panelGroupLayout 
or panelLabelAndMessage?

I use inputListOfValues for either inputting or selecting a postal code from a 
list of values and upon selection i update the calling page's fields with city 
and country info. It all works perfectly fine:

  | 
  | 
  | 
  | 
  | 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042234#4042234

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042234
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-01 Thread smithbstl
I will try your suggestion dajevtic, thanks

A couple of questions,

1.  Are you still using the code you provided earlier in the thread (Phase 
Listener and Action Listener)?  I know those comments are a number of months 
old and didn't if anything on either Seam or Trinidad was "fixed" to make them 
unecessary.

2.  Which view handler are you using in web.xml?
   - com.sun.facelets.FaceletViewHandler?
   - org.jboss.seam.ui.facelet.SeamFaceletViewHandler?

Does it make a difference when it comes to Trinidad Dialogs (or anything else 
Trinidad related such as PPR)?

Thanks

-Brian


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042244#4042244

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042244
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-01 Thread dajevtic
Hi, yes I still use the phase- and action listeners, but to be honest, I 
haven't tested in months, whether it works without them.

I've beem using the SeamFaceletViewHandler since I switched to Facelets some 
weeks ago.

If my solution doesn't work, then let me know. I'll provide more info.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042247#4042247

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042247
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-01 Thread chane
ok - I created a quick test application to demonstrate the Trinidad Dialog / 
Seam integration.  It can be found at:

https://sourceforge.net/project/showfiles.php?group_id=189858

To use it:
This is a simple test app showing Trinidad Dialogs working with the Seam 
framework.  To use, deploy the dist/TestApp.ear to a Jboss 4.0.4 Server.

http://localhost:8080/testApp

1) click start (starts a conversation)
2) click main (loads a second page)
3) click start dialog
   - the dialog is now open
4) enter a number and click submit
5) the number should now be displayed on the page
   opened in #2.
6) that's it!

Note1: Assumes MyFaces 1.1.4 and not Sun JSF RI (see MyActionListener if you 
need to change that)
Note2: I am using 4.0.4 of JBoss App Server.  Don't know if it works with other 
versions.

Hope this helps,
Chris

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042267#4042267

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042267
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-02 Thread smithbstl
Thanks Chris, I am going through your example now.  Just one thing, you have a 
MySQL datasource defined in persistence.xml  You should change this to 
Hypersonic for the example so it will run "out of the box".  Just requires a 
change to DefaultDS as the JNDI name of the datasource in persistence.xml.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042446#4042446

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042446
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-02 Thread smithbstl
Ok I finally have this working.  I think it had to do with not having my tags 
enclosed in a trh:body element which is required to get PPR working.  I thought 
a tr:document would suffice but I guess not?  

Also I have done some limited testing with the Phase Listener/Action Listener 
provided by earlier in the thread.  I don't think these are necessary to get 
Dialogs working in the most basic sense.  If all you need to pop up the window 
and return a value, a new short-lived conversation will be created by Seam.  
This is fine since the dialog should not need to know anything about the 
conversation you came from.  This may not be true for other Use Cases where you 
need to pass a value to the dialog.  

I still can't find a way to propagate the conversation to the dialog window.  I 
have tried the above mentioned Phase Listener and also the 
s:conversationPropagation tag in Seam's Library.  Neither seem to work.

I would love to hear other ideas on the subject.

Thanks to both Chris and dajevtic for your help on this.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042607#4042607

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042607
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-03 Thread chane
"smithbstl" wrote : 
  | I still can't find a way to propagate the conversation to the dialog 
window.  I have tried the above mentioned Phase Listener and also the 
s:conversationPropagation tag in Seam's Library.  Neither seem to work.
  | 

The test app I put together does propagate the conversation to the dialog.  To 
see it do the following:

- on the first page there should be a conversation id on the page
  - this is a temporary conversation
- click start button
- a new conversation id should be created
  - this is a long running conversation
- click main (it's the second button)
- a new page should open up, the long running cid should be displayed
- click start dialog
- the dialog should open up and should be showing the long running cid

I need a long running conversation and I believe both the PhaseListener and 
ActionListener are needed.  To bad it doesn't seem like we can figure out a way 
to get it to work without these modifications.

Maybe something in Seam 1.3.  Probably need to use the trinidad-seam extension 
that the JBoss guys are creating with some added "glue" to get the conversation 
to propagate correctly across dialogs.  Hopefully with this ground work they 
can think of something a little more elegant than this quick hack.

Chris


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042806#4042806

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042806
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-03 Thread smithbstl
Chris, I have followed your instructions and am not seeing the conversation 
propagated.

1st page has a conversation id (cid) of 1
2nd page (long running conversation) cid=2
3rd page(page with dialog link) cid=2
dialog page cid=4

I have not changed anything in your project other than the DataSource reference 
in persistence.xml

anonymous wrote : Maybe something in Seam 1.3. Probably need to use the 
trinidad-seam extension that the JBoss guys are creating with some added "glue" 
to get the conversation to propagate correctly across dialogs. Hopefully with 
this ground work they can think of something a little more elegant than this 
quick hack. 

Where have you heard about a trinidad-seam extenstion?  I can't find anything 
in jira about it.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042824#4042824

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042824
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-03 Thread dajevtic
Please check in my provided listeners, if you are using "conversationId" 
paramter name od "cid" parameter name...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042826#4042826

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042826
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-03 Thread smithbstl
which is correct?  coversationId or cid?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042834#4042834

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042834
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-03 Thread dajevtic
The one that is configured in your components.xml.
In your case probably "cid" ?!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042836#4042836

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042836
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-03 Thread smithbstl
Ok thanks.  It was consistent between components.xml and the phase listener.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042837#4042837

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042837
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-03 Thread petemuir
Can one of you create a JIRA issue for me? I need to know what the exact 
problem you are encountering is (and how I can replicate), and what you are 
doing to solve it and the relevant classes.  Then I can roll it into the 
jboss-seam-trinidad.jar and seamdiscs example. Thanks!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042839#4042839

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042839
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-03 Thread smithbstl
I have created the jira, Chris or dajevtic, feel free to add anything I may 
have left out.

http://jira.jboss.com/jira/browse/JBSEAM-1289

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042843#4042843

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042843
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-03 Thread chane
"smithbstl" wrote : Chris, I have followed your instructions and am not seeing 
the conversation propagated.
  | 
  | 1st page has a conversation id (cid) of 1
  | 2nd page (long running conversation) cid=2
  | 3rd page(page with dialog link) cid=2
  | dialog page cid=4

hmmm... note sure what to tell you.  It works for me.

I have upload another version that is a bit clearer; but this probably isn't 
the problem.

1) Click "Start Conversation"
2) Click 2nd Page
3) Click start dialog (the conversation id should be the same as shown in #2)

Are you using JBoss 4.0.4?  

Chris

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042851#4042851

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042851
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-05-03 Thread chane
I have modified the JIRA.  I can try to answer questions

Chris

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042854#4042854

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042854
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-02-28 Thread hamtho2
Is this only necessary when using the PPR of Trinidad and if using ajax4jsf 
there is no need or is this a general "must-do" if using trinidad together with 
seam correctly.

Could you give some more detail on the PhaseListener. Is it necessary to write 
an own PhaseListener that overrides the methods mentioned about or is it 
necessary to change code of the current PhaseListener provided with Seam?

Afterwards: are there any settings that have to be done in the web.xml or 
faces-config.xml?

Some more details would be greatly appriciated.

Thanks for your help

Thomas

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023537#4023537

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023537
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-03-17 Thread dajevtic
My appologies for not answering earliert. I didn't sign up for notification of 
new posts. If anyone still needs help regarding this matter, I'll be glad to 
help.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029071#4029071

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029071
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-11-13 Thread wchico2
Hi,

As of last week Seam 2.0 has become productive. Has the situation changed in 
any way?

What I noticed is that the original way of propagation of this hack is not 
possible anymore with Seam 2.0 because the line

Manager.instance().restoreConversation(createParameterMapForConversationRestore(convId));
 

is not possible anymore due to changes of the Seam API.

So if at least we could save this hack and have Seam 2.0 running with Trinidad 
with this respect, the next question is which Seam method to use instead of 
above line. Any ideas?

Thanks,
Wolfgang.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104006#4104006

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104006
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-11-13 Thread [EMAIL PROTECTED]
No. I've scheduled the issue however.

Try replacing the line with

ConversationPropagation.instance().setConversatonId(convId);
  | Manager.instance().restoreConversation();

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104040#4104040

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104040
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-11-13 Thread chane
"[EMAIL PROTECTED]" wrote : 
  | No. I've scheduled the issue however.
  | 

Pete,

As you guys talk about this here are some things I have noticed that need to be 
looked at for closer Seam/Trinidad integration.

- dialogs
   - which is how this thread original was started and the hack provided
  to get them working with conversations
- skinning 
   - it would be nice to be able to use the trinidad skinning framework 
 for the Seam components 
   - actually, this is on my list for the s:link and s:button components; 
 probably sometime early in the new year.
- table pagination 
   - trinidad provides a control at the top of the table for next/prev 
 records; conversation propagation needs to be looked at for these links
   - I use the auto next/prev links; but I'm pretty sure the conversation
 aspects of Seam are not invoked
   - since my uses right now are read only, I have not had a need for
 conversations; but others might have different requirements

I'm sure this is not a complete list (as I don't use everything in Trinidad); 
just thought I would through out an initial list if someone is going to be 
looking at closer integration between the two frameworks.

If others want to add to this, it might be better to start commenting in JIRA 
or create a list of integration areas on a wiki somewhere.  Whatever the method 
of communication, I feel (obviously since I use both) integration would serve 
both communities very well.

Chris

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104234#4104234

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104234
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam

2007-11-13 Thread [EMAIL PROTECTED]
Please create a JIRA issue for each area of integration needed (e.g. one for 
tables, one for skinning). Put them in the JSF category for now.

N.b. this isn't high up the dev teams priority list - for obvious reasons we 
need to deal with RichFaces integration first. *But* if people can create 
patches I will try to review and apply them asap.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104247#4104247

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104247
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user