Re: [Trinidad] PartialSubmit and Alert

2010-05-25 Thread Jozef Dropco

Thanks all,
i got it working now.
Jozef


On 25.5.2010 23:29, Walter Mourão wrote:

If using partial page rendering You can send some javascript from the
server, using the ExtendedRenderKitService's addScript() method.

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Tue, May 25, 2010 at 3:05 PM, Vinod Krishnan  wrote:

   

you can use FacesMessages to show popup..

Thanks,
Vinod

http://vtkrishn.wordpress.com/


On Tue, May 25, 2010 at 11:09 PM, Jozef Dropco 

wrote:
   
 

Hi all,



and I want: If method saveChanges returns error from business logic, show
javascript alert on page

Is it possible to do and how?
Thanks
Jozef

   
 
   




[Trinidad] PartialSubmit and Alert

2010-05-25 Thread Jozef Dropco

Hi all,

partialSubmit="true" text="#{msg.save}"/>


and I want: If method saveChanges returns error from business logic, 
show javascript alert on page


Is it possible to do and how?
Thanks
Jozef


Re: AW: Problem with tr:selectOneChoice

2010-05-19 Thread Jozef Dropco

hmm, are you sure this is the doSomething?

public void doSomething() {
// TODO: delete selected Entry From Database and reload
// list; here: init with some dummy content
entries = new ArrayList();
selectedEntry = null;
}
because in atribute action should be EL with method which returns String so 
public String doSomething()



On 19.5.2010 14:17, Gronenborn, Frank wrote:

Okay,

if I eliminate the PPR on the button and do navigation instead like this:







it works...but it is mystic to me, why the combobox reacts that mystic on 
partialTriggers

Frank


-Ursprüngliche Nachricht-
Von: Gronenborn, Frank [mailto:frank.gronenb...@arag.de]
Gesendet: Mittwoch, 19. Mai 2010 13:35
An: MyFaces Discussion
Betreff: AW: Problem with tr:selectOneChoice

Sure - no effect.

class Bean is declared as session bean like this:

   
 Bean
 package.Bean
 session
   

To ensure that I don't face any JSF-dialog-problems I just simplified the 
entire code and eliminated the entire dialog and return listening logic - no 
effect either. My application at the moment really operates as simple as 
described below...

Frank

-Ursprüngliche Nachricht-
Von: Vinod Krishnan [mailto:vin.si...@gmail.com]
Gesendet: Mittwoch, 19. Mai 2010 13:26
An: MyFaces Discussion
Betreff: Re: Problem w/ tr:selectOneChoice

can u try

selectedEntry = ""; // instead of null

On Wed, May 19, 2010 at 4:45 PM, Gronenborn, Frank   

wrote:
 
   

The exception occurs inside the RENDER_RESPONSE phase, if this helps...

Frank

-Ursprüngliche Nachricht-
Von: Gronenborn, Frank [mailto:frank.gronenb...@arag.de]
Gesendet: Mittwoch, 19. Mai 2010 13:04
An: MyFaces Discussion
Betreff: AW: Problem w/ tr:selectOneChoice

Here it is (package declaration omitted):


import java.util.ArrayList;
import java.util.List;

import javax.faces.model.SelectItem;

public class Bean {
private String selectedEntry;
private List  entries;


private void initEntries() {
entries = new ArrayList();
// TODO: load Entries From Database
// here: init with some dummy content
entries.add(new SelectItem("First", "First", "First",
false));
}
public List  getEntries() {
return entries;
}

public String getSelectedEntry() {
return selectedEntry;
}

public void setSelectedEntry(String pSelectedEntry) {
selectedEntry = pSelectedEntry;
}

public void doSomething() {
// TODO: delete selected Entry From Database and reload
// list; here: init with some dummy content
entries = new ArrayList();
selectedEntry = null;
}
}



-Ursprüngliche Nachricht-
Von: Vinod Krishnan [mailto:vin.si...@gmail.com]
Gesendet: Mittwoch, 19. Mai 2010 12:43
An: MyFaces Discussion
Betreff: Re: Problem w/ tr:selectOneChoice

Can u please paste the code that you do inside doSomething method

On Wed, May 19, 2010 at 4:06 PM, Gronenborn, Frank<
frank.gronenb...@arag.de
 

wrote:
   
 

Indeed, there was none partialSubmit="true" attribute set in the
tr:commandButton. I corrected that, but without any significant effect:
   

The
 

error still occurs.

Frank



-Ursprüngliche Nachricht-
Von: Vinod Krishnan [mailto:vin.si...@gmail.com]
Gesendet: Mittwoch, 19. Mai 2010 11:51
An: MyFaces Discussion
Betreff: Re: Problem w/ tr:selectOneChoice

if you have a partialTriggers="button1" then there is no
   

partailSubmit=true
 

for the commandbutton could you please check

On Wed, May 19, 2010 at 3:18 PM, Gronenborn, Frank<
frank.gronenb...@arag.de
   

wrote:
 
   

Yeah, sure, that was a typo just because I tried to simplify the code.
 

Of
 

course  the trigger is button1, thanks

Frank


-Ursprüngliche Nachricht-
Von: Jozef Dropco [mailto:jozef.dro...@gmail.com]
Gesendet: Mittwoch, 19. Mai 2010 11:38
An: MyFaces Discussion
Betreff: Re: Problem w/ tr:selectOneChoice

Hi I am not sure but

partialTriggers should be "button1" instead of "button".


Jozef

On 19.5.2010 11:30, Gronenborn, Frank wrote:
 

Hi all,



I'm using Trinidad 1.2.13 and face the following problem:



I have a selectOneChoice like this:



   

autoSubmit="true" partialTriggers="button">
 







plus the corresponding button:



   

action="#{Bean.doSomething}" useWindow="true"
returnListener="#{Bean.returned}"/>
 



In the Bean-Method doSomething(), I show some simple confirm-dialog
   

and
 

delete the selectedEntry from the list (incl. reset the selectedEntry
 

to
 

null) 

Re: Problem w/ tr:selectOneChoice

2010-05-19 Thread Jozef Dropco

Hi I am not sure but

partialTriggers should be "button1" instead of "button".


Jozef

On 19.5.2010 11:30, Gronenborn, Frank wrote:

Hi all,



I'm using Trinidad 1.2.13 and face the following problem:



I have a selectOneChoice like this:











plus the corresponding button:







In the Bean-Method doSomething(), I show some simple confirm-dialog and delete 
the selectedEntry from the list (incl. reset the selectedEntry to null) on 
dialog-return. After this step get-Methods for both entries and selectedEntry 
are called, returning the updated list, null resp. So far, that's fine.

But actually inside the rendered page the selected item in the comboBox doesn't 
change to null but the last one in the list instead, and if I delete the last 
element of the list I get the following error.





[19.05.10 11:23:33:071 CEST] 002a viewhandler   E   Error Rendering 
View[/test.jspx]

  java.lang.IndexOutOfBoundsException: Index 
SelectOne submittedValue's index 1 is out of bounds. It should be between 0 and 0

   at 
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer.__getIndex(SimpleSelectOneRenderer.java:423)

   at 
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer._getSelectedIndex(SimpleSelectOneRenderer.java:548)

   at 
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer.encodeAllAsElement(SimpleSelectOneRenderer.java:271)

   at 
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer.encodeAll(FormElementRenderer.java:109)

   at 
org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:446)

   at 
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.InputLabelAndMessageRenderer.renderFieldCellContents(InputLabelAndMessageRenderer.java:146)

   at 
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.LabelAndMessageRenderer._renderFieldCell(LabelAndMessageRenderer.java:470)

   at 
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.LabelAndMessageRenderer.encodeAll(LabelAndMessageRenderer.java:340)

   at 
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.InputLabelAndMessageRenderer.encodeAll(InputLabelAndMessageRenderer.java:124)

   at 
org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)

   at 
org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:794)

   at 
org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)

   at 
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelFormLayoutRenderer._encodeFormItem(PanelFormLayoutRenderer.java:911)

   at 
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelFormLayoutRenderer.access$100(PanelFormLayoutRenderer.java:48)

   at 
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1419)

   at 
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1338)

   at 
org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)

   at 
org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)

   at 
org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)

   at 
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelFormLayoutRenderer._encodeChildren(PanelFormLayoutRenderer.java:312)

   at 
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelFormLayoutRenderer.encodeAll(PanelFormLayoutRenderer.java:137)

   at 
org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)

   at 
org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:794)

   at 
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:534)

   at 
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:511)

   at 
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:532)

   at 
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:511)

   at 
org.apache.myfaces.custom.htmlTag.HtmlTagRenderer.encodeChildren(HtmlTagRenderer.java:111)

   at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:611)

   at 
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:528)

   at 
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:511)

   at 
org.apache.myfaces.custom.htmlTag.HtmlTagRenderer.encodeChildren(HtmlTagRenderer.java:111)

   at 
javax.faces.component.

Re: [Trinidad] Changing content of form

2010-05-15 Thread Jozef Dropco
Hmm, I found maybe a solution but I am not able to get it running. Maybe 
its wrong way but I am not sure.

Subform make possible to validate only part of the page.
http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_subform.html

Can somebody help me ? Its making me crazy.

Jozef

On 12.5.2010 15:34, Cédric Durmont wrote:

Maybe it's a bit dirty, and maybe it won't work at all (I'm still
quite new to the jsf/trinidad world), but you can try to remove all
messages in the valuechangelistener.
FacesContext.getCurrentInstance().getMessages() will give you an
iterator on the message queue.

Regards,
Cedric

2010/5/12 Jozef Dropco:
   

Thanks Cedric,
that made the trick but I got some warnings about FacesMessage, so is it
possible to make it without them?

INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been
displayed.
sourceId=j_id29[severity=(ERROR 2), summary=(A value is required.),
detail=(You must enter a value.)]
sourceId=j_id30[severity=(ERROR 2), summary=(A value is required.),
detail=(You must enter a value.)]


Jozef

On 12.5.2010 14:03, Cédric Durmont wrote:
 

I won't say it's the ideal way, but my trick is to use a
valueChangeListener on the tr:selectBooleanCheckbox, with
immediate="true". When the ValueChangeListener is triggered, I update
the list used by the tr:selectOneChoice, and the partialTrigger does
the rest.

Hope this helps.
Regards,
Cedric Durmont

2010/5/12 Jozef Dropco:

   

I have following form, and I need when I toggle checkbox change values of
selectOneChoice. But inputText is first-time blank and selectOneChoice is
first-time null, so when I toggle checkbox javascript validation stops
rerendering, is  it possible to change the value without validation. I
tried
immediate="true" but no success :-(.

Any ideas?
Thanks Jozef














 


   


 
   




Re: [Trinidad] Changing content of form

2010-05-12 Thread Jozef Dropco

Thanks Cedric,
that made the trick but I got some warnings about FacesMessage, so is it 
possible to make it without them?


INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been 
displayed.
sourceId=j_id29[severity=(ERROR 2), summary=(A value is required.), 
detail=(You must enter a value.)]
sourceId=j_id30[severity=(ERROR 2), summary=(A value is required.), 
detail=(You must enter a value.)]



Jozef

On 12.5.2010 14:03, Cédric Durmont wrote:

I won't say it's the ideal way, but my trick is to use a
valueChangeListener on the tr:selectBooleanCheckbox, with
immediate="true". When the ValueChangeListener is triggered, I update
the list used by the tr:selectOneChoice, and the partialTrigger does
the rest.

Hope this helps.
Regards,
Cedric Durmont

2010/5/12 Jozef Dropco:
   

I have following form, and I need when I toggle checkbox change values of
selectOneChoice. But inputText is first-time blank and selectOneChoice is
first-time null, so when I toggle checkbox javascript validation stops
rerendering, is  it possible to change the value without validation. I tried
immediate="true" but no success :-(.

Any ideas?
Thanks Jozef













 
   




[Trinidad] Changing content of form

2010-05-11 Thread Jozef Dropco
I have following form, and I need when I toggle checkbox change values 
of selectOneChoice. But inputText is first-time blank and 
selectOneChoice is first-time null, so when I toggle checkbox javascript 
validation stops rerendering, is  it possible to change the value 
without validation. I tried immediate="true" but no success :-(.


Any ideas?
Thanks Jozef


value="#{pensionBean.pension.price.price}">




label="#{msg.useSystemCurrencies}" 
value="#{pensionBean.pension.price.discriminator}"/>


partialTriggers="pensionCurrencyChanger" 
value="#{pensionBean.pension.price.currentCurrency}">






Re: Enums in selectItems

2010-05-01 Thread Jozef Dropco

Thanks a lot Anton, I've got it working now.
Jozef

On 1.5.2010 21:20, Anton Gavazuk wrote:

Hi Jozef,

see it:

public class EnumConverter implements Converter {
 public Object getAsObject(FacesContext context, UIComponent comp, String
value) throws ConverterException {
 Class enumType = comp.getValueBinding("value").getType(context);
 return Enum.valueOf(enumType, value);
 }

 public String getAsString(FacesContext context, UIComponent component,
Object object) throws ConverterException {
 if (object == null) {
 return null;
 }

 if (object instanceof String) {
 return (String) object;
 }

 //ADD localization ability
 Enum type = (Enum) object;
 return type.name();
 }
}


2010/5/1 Jozef Dropco

   

Hi all,
I have a little bit stupid question. I got this message: End of weekend:
'Tuesday' must be convertible to an enum from the enum that contains the
constant 'Tuesday'. Do I have to write my own converter or what should I do.

public enum DayOfWeek {

   MONDAY("Monday"),
   TUESDAY("Tuesday"),
   WEDNESDAY("Wednesday"),
   THURSDAY("Thursday"),
   FRIDAY("Friday"),
   SATURDAY("Saturday"),
   SUNDAY("Sunday");
   private String name;
}

***BEAN***
for (DayOfWeek day :DayOfWeek.values()){
  days.add(new SelectItem(day, day.getName()));
  }
***XHTML***





Thanks Jozef.

 
   




Enums in selectItems

2010-05-01 Thread Jozef Dropco

Hi all,
I have a little bit stupid question. I got this message: End of weekend: 
'Tuesday' must be convertible to an enum from the enum that contains the 
constant 'Tuesday'. Do I have to write my own converter or what should I 
do.


public enum DayOfWeek {

   MONDAY("Monday"),
   TUESDAY("Tuesday"),
   WEDNESDAY("Wednesday"),
   THURSDAY("Thursday"),
   FRIDAY("Friday"),
   SATURDAY("Saturday"),
   SUNDAY("Sunday");
   private String name;
}

***BEAN***
for (DayOfWeek day :DayOfWeek.values()){
  days.add(new SelectItem(day, day.getName()));
  }
***XHTML***
value="#{addWeekendDiscount.weekend.endWeekend}">





Thanks Jozef.


Re: [Trinidad] : Lightweight dialog issue with Firefox

2010-04-28 Thread Jozef Dropco

Hi,
I am using trinidad 1.2.13 and I had similar problem the dialog does not 
show. I found solution I had on button partialSubmit="true" when I 
removed it lightweight dialog appear. If I used popup windows the 
partialSubmit worked on button.


Jozef

On 28.4.2010 12:32, Venkat Ramanan Viswanathan wrote:

When trying to open a lightweight dialog in Firefox, the calling page
reloads over and over again and the dialog doesn't show up. Is someone else
facing a similar problem ? However for IE and chrome light weight dialogs
appear fine.





I am using Firefox 3.6.3 . The application uses Trinidad 2 – alpha2.



Also is it possible to specify that light weight dialogs be available only
on IE and chrome and use the popup windows for firefox ?





Thanks for all your help

   




Re: [Trinidad]ChartDrillDownListener

2010-04-22 Thread Jozef Dropco
Sorry Erik, my fault I didnt copy/paste code but write it instead. this 
is exactly code which I have


public class FacilityOverviewBean implements Serializable{

 public FacilityOverviewBean() {
   }

   public ChartModel getHistory() {
  List group = new ArrayList();
  List series = new ArrayList();
  ArrayList> values = new ArrayList>();
  series.add("Prices");
  for (Pricepolicy policy : facility.getPricepolicies()) {
 group.add(policy.getName());
 values.add(Arrays.asList(policy.getPrice().getPrice()));
  }
  ChartModel chart = new ChartModel();
  try {
 chart.prepareChart(group, series, null, values);
  } catch (ISException ex) {
 
Logger.getLogger(FacilityOverviewBean.class.getName()).log(Level.SEVERE, 
null, ex);

 return null;
  }
  return chart;
   }

 public void drillDown(ChartDrillDownEvent event) {
  System.out.println("kua");
  System.out.println(event.getSource());
   }
}

webpage contains this
chartDrillDownListener="#{facilityOverview.drillDown}"/>


The chart displays correctly but the listener does not work :(

On 22.4.2010 12:11, GOVAERS Erik wrote:

Hi Jozef,

Does the name of your managed bean class begin with capital 'F' (cf. 
FacilityOverviewBean in config)?

Erik



Erik Govaers
Boomgaardstraat 22 | 2600 Antwerpen
Tel.: 03 240 56 72
erik.gova...@welzijn.provant.be





-Oorspronkelijk bericht-
Van: Jozef Dropco [mailto:jozef.dro...@gmail.com]
Verzonden: donderdag 22 april 2010 11:50
Aan: MyFaces Discussion
Onderwerp: [Trinidad]ChartDrillDownListener

I have following problem that I cant solve. I get strange exception.

Caused by: javax.el.PropertyNotFoundException: /manager/overview.xhtml
@197,147 chartDrillDownListener="#{facilityOverview.drillDown}":
Property 'drillDown' not found on type beans.overview.FacilityOverviewBean

but in facilityOverviewBean I have it.

faces-config.xml

facilityOverview
beans.overview.FacilityOverviewBean
session


facilityoverviewBean
public class facilityoverviewBean implements Serializable{ ...
public void drillDown(ChartDrillDownEvent event) {
System.out.println(event.getSource());
 }
...
}

configuration: trinidad 1.2.13, JSF1.2, tomcat

Whats wrong? Please help.
Jozef

Disclaimer: Op deze e-mail is de wet van 13 juni 2005 over het vertrouwelijke 
karakter van elektronische communicatie van toepassing. De tekst van het 
betrokken artikel kun je op onze website consulteren.
http://www.provant.be/provant_disclaimer.jsp


   




[Trinidad]ChartDrillDownListener

2010-04-22 Thread Jozef Dropco

I have following problem that I cant solve. I get strange exception.

Caused by: javax.el.PropertyNotFoundException: /manager/overview.xhtml 
@197,147 chartDrillDownListener="#{facilityOverview.drillDown}": 
Property 'drillDown' not found on type beans.overview.FacilityOverviewBean


but in facilityOverviewBean I have it.

faces-config.xml

facilityOverview
beans.overview.FacilityOverviewBean
session


facilityoverviewBean
public class facilityoverviewBean implements Serializable{
...
public void drillDown(ChartDrillDownEvent event) {
  System.out.println(event.getSource());
   }
...
}

configuration: trinidad 1.2.13, JSF1.2, tomcat

Whats wrong? Please help.
Jozef


[TRINIDAD] SelectManyShuttle

2010-04-10 Thread Jozef Dropco

Hello all,
 I have 2 selectManyShuttle. In first are categories of object and in 
the second one are objects itself. What I want to do is when i 
select/deselect in category I want to update the second one 
selectManyShuttle selected objects. Is it possible to do without 
refreshing whole page? Because I didnt find any 'autosubmit' and 
valueChangeListener is not send directly after change.


Thanks Jozef


Re: [Trinidad] Problem with chooseDate and chart in Opera

2010-03-17 Thread Jozef Dropco

Thanks for response Bart,

I have tried this before I send this message. I tried other sites with 
svg in Opera and it works just fine and to chooseDate: there are 2 
options inputDate and chooseDate tag, with chooseDate it works but 
chooseDate should be rendered in my web page as calendar but it does not 
render anything in my page, see attached files.


Jozef
On 17.3.2010 8:12, Bart Kummel wrote:

Hi Jozef,

I don't have any experience with Opera. (I don't even have it installed...)
So I cannot help you on this. But I can give you some clues...

- The charts are rendered with SVG and JavaScript. So you should check if
Opera can render SVG. Perhaps you'll need some plugin?
- The date picker: perhaps Opera has a built-in popup blocker that blocks
the date picker popup? To prevent this, you can use Trinidad's "lightweigt
dialogs", see [1].

Best regards,
Bart

[1]
http://myfaces.apache.org/trinidad/devguide/configuration.html#org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS

On Sun, Mar 14, 2010 at 14:51, Jozef Dropco  wrote:

   

Hello again,
I did not mention that, this does not work also in examples on
http://test.codebeat.ro/trinidad-components-demo/component-demo/chart-Default.
Could somebody say something to it, its a bug?
Thanks
Jozef

On 10.3.2010 13:57, Jozef Dropco wrote:

 

Hello all,
I dont know why it doesnt work but, i have opera 10.5 and it does not
work. If I open my page in Firefox everything is fine, but in opera
chooseDate is not rendered at all and chart loads something but never stops.
What is wrong here I cant understand it.

Thanks Jozef
Conf: Facelets 1.1.14, trinidad:1.2.13, Glassfish (and same on tomcat)


   
 


   


 
var _locale='en';var _tLocale='en';var _df2DYS=1950;
  <

  
  January

  February


  March

  April

  May

  June

  July

  August


  September

  October

  November

  December
Choose month 
  2004


  2005

  2006

  2007

  2008

  2009

  2010


  2011

  2012

  2013

  2014
Choose year

  >


  
Sun
  
Mon
  
Tue
  
Wed
  
Thu

  
Fri
  
Sat
  
28
  
1
  
2

  
3
  
4
  
5
  
6
  
7

  
8
  
9
  
10
  
11
  
12
  
13

  
14
  
15
  
16
  
17
  
18

  
19
  
20
  
21
  
22
  
23

  
24
  
25
  

Re: [Trinidad] Problem with chooseDate and chart in Opera

2010-03-14 Thread Jozef Dropco

Hello again,
I did not mention that, this does not work also in examples on 
http://test.codebeat.ro/trinidad-components-demo/component-demo/chart-Default. 
Could somebody say something to it, its a bug?

Thanks
Jozef
On 10.3.2010 13:57, Jozef Dropco wrote:

Hello all,
I dont know why it doesnt work but, i have opera 10.5 and it does not 
work. If I open my page in Firefox everything is fine, but in opera 
chooseDate is not rendered at all and chart loads something but never 
stops. What is wrong here I cant understand it.


Thanks Jozef
Conf: Facelets 1.1.14, trinidad:1.2.13, Glassfish (and same on tomcat)





[Trinidad] Problem with chooseDate and chart in Opera

2010-03-10 Thread Jozef Dropco

Hello all,
I dont know why it doesnt work but, i have opera 10.5 and it does not 
work. If I open my page in Firefox everything is fine, but in opera 
chooseDate is not rendered at all and chart loads something but never 
stops. What is wrong here I cant understand it.


Thanks Jozef
Conf: Facelets 1.1.14, trinidad:1.2.13, Glassfish (and same on tomcat)


Re: [Trinidad]Problem with generated HTML

2010-02-17 Thread Jozef Dropco

Thanks Andrew this solved my problem:)
Jozef
On 18.2.2010 4:25, Andrew Robinson wrote:

Are you using facelets? If so, put a  around the
f:view, or better yet, remove all of the JSP tags in the page.

-Andrew

On Wed, Feb 17, 2010 at 7:29 AM, Jozef Dropco  wrote:
   

Hi all,
I have following code:
http://java.sun.com/JSP/Page";
  xmlns:f="http://java.sun.com/jsf/core";
  xmlns:h="http://java.sun.com/jsf/html";
  xmlns:trh="http://myfaces.apache.org/trinidad/html";
  xmlns:tr="http://myfaces.apache.org/trinidad";
  xmlns:ui="http://java.sun.com/jsf/facelets"; version="2.0">














Right


Content











but when I open HTML source code I can see there

http://java.sun.com/JSP/Page";>


What am I doing wrong, everything else work just fine.

Thanks,
Jozef


 
   




Re: Configuration problem?

2010-02-17 Thread Jozef Dropco

Ok, but sorry I am still not able to resolve it :(
On 17.2.2010 21:48, Michael Kurz wrote:
OK, I see your problem. You use Facelets which does not know how to 
deal with jsp tags. Therefore they are rendered "as is". 




Re: Configuration problem?

2010-02-17 Thread Jozef Dropco

Hi Michael, here is whole web.xml


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


javax.faces.STATE_SAVING_METHOD
client


javax.faces.DEFAULT_SUFFIX
.xhtml



org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS
false



org.apache.myfaces.trinidadinternal.ENABLE_PPR_OPTIMIZATION
false


org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE
false


org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION
true


org.apache.myfaces.trinidad.CHANGE_PERSISTENCE
session


org.apache.myfaces.trinidad.resource.DEBUG
false


org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT
true


org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER
org.apache.myfaces.trinidadinternal.facelets.TrinidadFaceletViewHandler


org.apache.myfaces.trinidad.FACELETS_VIEW_MAPPINGS
*.xhtml


facelets.SKIP_COMMENTS
true


trinidad
org.apache.myfaces.trinidad.webapp.TrinidadFilter


trinidad
faces



faces
javax.faces.webapp.FacesServlet



resources
org.apache.myfaces.trinidad.webapp.ResourceServlet



faces
/faces/*


faces
*.faces


resources
/adf/*


resources
/afr/*



And I have tried rename files, but no change at all
Thanks,
Jozef

On 17.2.2010 16:01, Michael Kurz wrote:

Hi Jozef,

you mention that you have jsp content in xhtml files. There might be a 
problem with the context parameter javax.faces.DEFAULT_SUFFIX and/or 
your servlet mapping. Can you supply these infos (from your web.xml)?


Have you tried renaming your file from *.xhtml to *.jsp?

regards
Michael


Am 17.02.2010 12:33, schrieb Jozef Dropco:

I have following problem that I am not able to solve, I think I made
somewhere mistake.
Code:
http://java.sun.com/JSP/Page"; version="2.0"
xmlns:tr="...trinidad...">


This I have in xhtml file. Problem is when I deploy it on server and try
it everything seems allright, but when I open source code I see this:
http://java.sun.com/JSP/Page"; version="2.0">



What Am I doing wrong please help






[Trinidad]Problem with generated HTML

2010-02-17 Thread Jozef Dropco

Hi all,
I have following code:
http://java.sun.com/JSP/Page";
  xmlns:f="http://java.sun.com/jsf/core";
  xmlns:h="http://java.sun.com/jsf/html";
  xmlns:trh="http://myfaces.apache.org/trinidad/html";
  xmlns:tr="http://myfaces.apache.org/trinidad";
  xmlns:ui="http://java.sun.com/jsf/facelets"; version="2.0">














Right


Content











but when I open HTML source code I can see there

http://java.sun.com/JSP/Page"; >


What am I doing wrong, everything else work just fine.

Thanks,
Jozef



Configuration problem?

2010-02-17 Thread Jozef Dropco
I have following problem that I am not able to solve, I think I made 
somewhere mistake.

Code:
http://java.sun.com/JSP/Page"; version="2.0" 
xmlns:tr="...trinidad...">
contentType="text/html;charset=utf-8">


This I have in xhtml file. Problem is when I deploy it on server and try 
it everything seems allright, but when I open source code I see this:

http://java.sun.com/JSP/Page"; version="2.0">

contentType="text/html;charset=utf-8">


What Am I doing wrong please help