You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jonas Jacobi <jo...@oracle.com> on 2006/05/04 03:05:00 UTC
MyFaces J1 party 2006
Hi everybody,
We are now very, very close to JavaOne and I just want give you some
heads-up regarding the annual MyFaces party. I'm pleased to say that we
are going to host this party in the same venue as last year - Thirsty
Bear - and that it is sponsored by: CA + Oracle = free beer/wine and food.
*
Location:*
Thirsty Bear Brewing Co.
661 Howard Street
San Francisco, Calif. 94105
*Time:*
Thursday, May 18th from 7:00pm - 10:00pm in the Balcon/Sillon Room.
There is room for 30 and at the moment I have the following people
signed up for the party (22 in total):
*Lastname* *Firstname*
Abrams Howard
Byrne Dennis
Clevenger Rob
Fallows John
Frohman Lance
Geiler Manfred
Goei Edwin
Hightower Rick
Hookom Jacob
Jacobi Jonas
Korhonen Kalle
Mann Kito
Marinschek Martin
McClanahan Craig
Reddin Greg
Silvert Stan
Smoak Wendy
Tazi Omar
VanMatre Gary
Wessendorf Matthias
Winer Adam
Let me know if I have missed anyone or if you are interested to join us
for a beer or two. Looking forward to meet you all at JavaOne. Note: If
you would like to join please reply to this email with a +1 as soon as
possible.
Cheers,
Jonas
--
*Author*: Pro JSF and Ajax: Building Rich Internet Components
<http://apress.com/book/bookDisplay.html?bID=10044>
*Blog*: http://www.orablogs.com/jjacobi
Re: t:commandButton action method not called
Posted by Le Van <lv...@it.fts-vn.com>.
Thanks for your advice. I try your code but I can't solved the problem.
I port that code to other screen, it work fine. So I think the problem
maybe from .jsp. :-) Life goes on.
Murat Hazer wrote:
> sorry accidently sent the mail...
>
> last line should be like this;
>
> outputStream.close();
> outputStream.flush();
> facesContext.getApplication
> ().getStateManager().saveSerializedView(facesContext);
> facesContext.responseComplete();
>
>
>
> On 5/4/06, *Murat Hazer* <murathazer@gmail.com
> <ma...@gmail.com>> wrote:
>
> I had the same issue with jasper reports and
> facesContext.getApplication().getStateManager().saveSerializedView(facesContext)
> solved my problem, i took a look at the your code and it's same as
> mine, only difference is there is outputStream.flush() after the
> outputStream.close(), so your code's last lines should be like this;
>
> outputStream.close();
> outputStream.flush();
>
> facesContext.responseComplete ();
> facesContext.getApplication
> ().getStateManager().saveSerializedView(facesContext);
>
> I hope it works...
>
> regards...
>
>
> On 5/4/06, *Le Van* < lvan@it.fts-vn.com
> <ma...@it.fts-vn.com>> wrote:
>
> I did it before but the problem still occur. So do u think the
> reason is
> JSF or I get wrong somewhere ?. I checked my code. Uhm...I'm
> not sure all.
> Do you have any idea more ??
> Murat Hazer wrote:
>
>> add this line just before facesContext.responseComplete()
>>
>> facesContext.getApplication
> ().getStateManager().saveSerializedView(
>> facesContext);
>>
>> regards...
>>
>> On 5/4/06, *Le Van* < lvan@it.fts-vn.com
> <ma...@it.fts-vn.com> <mailto: lvan@it.fts-vn.com
> <ma...@it.fts-vn.com>>>
>> wrote:
>>
>> Hi all,
>> I got a problem with t:commandButton. I have Search screen.
>> First, I push Search button to get data from DB. Then I push
>> OutputCSV button to get data results as csv file.
> Everything is
>> OK.Now I push search again, but action is not been called
> for all
>> command button on the screen ( except h:commandLink can
> take an
>> action). Here is my code to get data as csv.
>> public String outputCSVAction() {
>> FacesContext facesContext =
>> FacesContext.getCurrentInstance();
>> HttpServletResponse response =
>> (HttpServletResponse)
> facesContext.getExternalContext().getResponse();
>> ByteArrayOutputStream arrayOutputStream = new
>> ByteArrayOutputStream();
>> List dataList = pageObject.getDataList();
>> for (Iterator iter = dataList.iterator();
>> iter.hasNext();) {
>> TM00403ItemRow element = (TM00403ItemRow)
>> iter.next ();
>> prepareCSV(element, arrayOutputStream);
>> }
>>
> response.setContentType("application/x-download;
>> charset=shift_jis");
>>
>> response.setHeader("Content-disposition","attachment;
> filename=\""
>> + TMCommonConstants.OUTPUT_CSV + "\"");
>> ServletOutputStream outputStream =
>> response.getOutputStream();
>>
> outputStream.write(arrayOutputStream.toByteArray());
>>
> response.setContentLength(arrayOutputStream.size());
>> outputStream.flush();
>> outputStream.close();
>> facesContext.responseComplete();
>> }
>> Could anyone help me ?
>> Thanks for advance,
>> Van Le
>>
>>
>>
>>
>> --
>> Murat HAZER
>> Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
>> Tel - Phone: +90 222 335 05 80 - 1395
>> Cep Tel - Mobile Phone: +90 532 472 00 63
>> Blog URL: http://www.projedunyasi.org
>> Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
>
>
>
>
>
> --
> Murat HAZER
> Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
> Tel - Phone: +90 222 335 05 80 - 1395
> Cep Tel - Mobile Phone: +90 532 472 00 63
> Blog URL: http://www.projedunyasi.org
> Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
>
>
>
>
> --
> Murat HAZER
> Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
> Tel - Phone: +90 222 335 05 80 - 1395
> Cep Tel - Mobile Phone: +90 532 472 00 63
> Blog URL: http://www.projedunyasi.org
> Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: t:commandButton action method not called
Posted by Murat Hazer <mu...@gmail.com>.
sorry accidently sent the mail...
last line should be like this;
outputStream.close();
outputStream.flush();
facesContext.getApplication().getStateManager().saveSerializedView(facesContext);
facesContext.responseComplete();
On 5/4/06, Murat Hazer <mu...@gmail.com> wrote:
>
> I had the same issue with jasper reports and facesContext.getApplication().getStateManager().saveSerializedView(facesContext)
> solved my problem, i took a look at the your code and it's same as mine,
> only difference is there is outputStream.flush() after the
> outputStream.close(), so your code's last lines should be like this;
>
> outputStream.close();
> outputStream.flush();
>
> facesContext.responseComplete();
> facesContext.getApplication().getStateManager().saveSerializedView(facesContext);
>
> I hope it works...
>
> regards...
>
>
> On 5/4/06, Le Van < lvan@it.fts-vn.com> wrote:
> >
> > I did it before but the problem still occur. So do u think the reason is
> >
> > JSF or I get wrong somewhere ?. I checked my code. Uhm...I'm not sure
> > all.
> > Do you have any idea more ??
> > Murat Hazer wrote:
> >
> > > add this line just before facesContext.responseComplete()
> > >
> > > facesContext.getApplication ().getStateManager().saveSerializedView(
> > > facesContext);
> > >
> > > regards...
> > >
> > > On 5/4/06, *Le Van* <lvan@it.fts-vn.com <mailto: lvan@it.fts-vn.com>>
> > > wrote:
> > >
> > > Hi all,
> > > I got a problem with t:commandButton. I have Search screen.
> > > First, I push Search button to get data from DB. Then I push
> > > OutputCSV button to get data results as csv file. Everything is
> > > OK.Now I push search again, but action is not been called for all
> > > command button on the screen ( except h:commandLink can take an
> > > action). Here is my code to get data as csv.
> > > public String outputCSVAction() {
> > > FacesContext facesContext =
> > > FacesContext.getCurrentInstance();
> > > HttpServletResponse response =
> > > (HttpServletResponse) facesContext.getExternalContext
> > ().getResponse();
> > > ByteArrayOutputStream arrayOutputStream = new
> > > ByteArrayOutputStream();
> > > List dataList = pageObject.getDataList();
> > > for (Iterator iter = dataList.iterator();
> > > iter.hasNext();) {
> > > TM00403ItemRow element = (TM00403ItemRow)
> > > iter.next ();
> > > prepareCSV(element, arrayOutputStream);
> > > }
> > > response.setContentType("application/x-download;
> > > charset=shift_jis");
> > >
> > > response.setHeader("Content-disposition","attachment; filename=\""
> > > + TMCommonConstants.OUTPUT_CSV + "\"");
> > > ServletOutputStream outputStream =
> > > response.getOutputStream();
> > > outputStream.write(arrayOutputStream.toByteArray
> > ());
> > > response.setContentLength(arrayOutputStream.size
> > ());
> > > outputStream.flush();
> > > outputStream.close();
> > > facesContext.responseComplete();
> > > }
> > > Could anyone help me ?
> > > Thanks for advance,
> > > Van Le
> > >
> > >
> > >
> > >
> > > --
> > > Murat HAZER
> > > Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
> > > Tel - Phone: +90 222 335 05 80 - 1395
> > > Cep Tel - Mobile Phone: +90 532 472 00 63
> > > Blog URL: http://www.projedunyasi.org
> > > Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
> >
> >
> >
>
>
> --
> Murat HAZER
> Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
> Tel - Phone: +90 222 335 05 80 - 1395
> Cep Tel - Mobile Phone: +90 532 472 00 63
> Blog URL: http://www.projedunyasi.org
> Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
>
--
Murat HAZER
Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Tel - Phone: +90 222 335 05 80 - 1395
Cep Tel - Mobile Phone: +90 532 472 00 63
Blog URL: http://www.projedunyasi.org
Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: t:commandButton action method not called
Posted by Murat Hazer <mu...@gmail.com>.
I had the same issue with jasper reports and
facesContext.getApplication().getStateManager().saveSerializedView(facesContext)
solved my problem, i took a look at the your code and it's same as mine,
only difference is there is outputStream.flush() after the
outputStream.close(), so your code's last lines should be like this;
outputStream.close();
outputStream.flush();
facesContext.responseComplete();
facesContext.getApplication
().getStateManager().saveSerializedView(facesContext);
I hope it works...
regards...
On 5/4/06, Le Van <lv...@it.fts-vn.com> wrote:
>
> I did it before but the problem still occur. So do u think the reason is
> JSF or I get wrong somewhere ?. I checked my code. Uhm...I'm not sure
> all.
> Do you have any idea more ??
> Murat Hazer wrote:
>
> > add this line just before facesContext.responseComplete()
> >
> > facesContext.getApplication().getStateManager().saveSerializedView(
> > facesContext);
> >
> > regards...
> >
> > On 5/4/06, *Le Van* <lvan@it.fts-vn.com <ma...@it.fts-vn.com>>
> > wrote:
> >
> > Hi all,
> > I got a problem with t:commandButton. I have Search screen.
> > First, I push Search button to get data from DB. Then I push
> > OutputCSV button to get data results as csv file. Everything is
> > OK.Now I push search again, but action is not been called for all
> > command button on the screen ( except h:commandLink can take an
> > action). Here is my code to get data as csv.
> > public String outputCSVAction() {
> > FacesContext facesContext =
> > FacesContext.getCurrentInstance();
> > HttpServletResponse response =
> > (HttpServletResponse) facesContext.getExternalContext
> ().getResponse();
> > ByteArrayOutputStream arrayOutputStream = new
> > ByteArrayOutputStream();
> > List dataList = pageObject.getDataList();
> > for (Iterator iter = dataList.iterator();
> > iter.hasNext();) {
> > TM00403ItemRow element = (TM00403ItemRow)
> > iter.next();
> > prepareCSV(element, arrayOutputStream);
> > }
> > response.setContentType("application/x-download;
> > charset=shift_jis");
> >
> > response.setHeader("Content-disposition","attachment; filename=\""
> > + TMCommonConstants.OUTPUT_CSV + "\"");
> > ServletOutputStream outputStream =
> > response.getOutputStream();
> > outputStream.write(arrayOutputStream.toByteArray());
> > response.setContentLength(arrayOutputStream.size());
> > outputStream.flush();
> > outputStream.close();
> > facesContext.responseComplete();
> > }
> > Could anyone help me ?
> > Thanks for advance,
> > Van Le
> >
> >
> >
> >
> > --
> > Murat HAZER
> > Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
> > Tel - Phone: +90 222 335 05 80 - 1395
> > Cep Tel - Mobile Phone: +90 532 472 00 63
> > Blog URL: http://www.projedunyasi.org
> > Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
>
>
>
--
Murat HAZER
Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Tel - Phone: +90 222 335 05 80 - 1395
Cep Tel - Mobile Phone: +90 532 472 00 63
Blog URL: http://www.projedunyasi.org
Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: t:commandButton action method not called
Posted by Le Van <lv...@it.fts-vn.com>.
I did it before but the problem still occur. So do u think the reason is
JSF or I get wrong somewhere ?. I checked my code. Uhm...I'm not sure all.
Do you have any idea more ??
Murat Hazer wrote:
> add this line just before facesContext.responseComplete()
>
> facesContext.getApplication().getStateManager().saveSerializedView(
> facesContext);
>
> regards...
>
> On 5/4/06, *Le Van* <lvan@it.fts-vn.com <ma...@it.fts-vn.com>>
> wrote:
>
> Hi all,
> I got a problem with t:commandButton. I have Search screen.
> First, I push Search button to get data from DB. Then I push
> OutputCSV button to get data results as csv file. Everything is
> OK.Now I push search again, but action is not been called for all
> command button on the screen ( except h:commandLink can take an
> action). Here is my code to get data as csv.
> public String outputCSVAction() {
> FacesContext facesContext =
> FacesContext.getCurrentInstance();
> HttpServletResponse response =
> (HttpServletResponse) facesContext.getExternalContext().getResponse();
> ByteArrayOutputStream arrayOutputStream = new
> ByteArrayOutputStream();
> List dataList = pageObject.getDataList();
> for (Iterator iter = dataList.iterator();
> iter.hasNext();) {
> TM00403ItemRow element = (TM00403ItemRow)
> iter.next();
> prepareCSV(element, arrayOutputStream);
> }
> response.setContentType("application/x-download;
> charset=shift_jis");
>
> response.setHeader("Content-disposition","attachment; filename=\""
> + TMCommonConstants.OUTPUT_CSV + "\"");
> ServletOutputStream outputStream =
> response.getOutputStream();
> outputStream.write(arrayOutputStream.toByteArray());
> response.setContentLength(arrayOutputStream.size());
> outputStream.flush();
> outputStream.close();
> facesContext.responseComplete();
> }
> Could anyone help me ?
> Thanks for advance,
> Van Le
>
>
>
>
> --
> Murat HAZER
> Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
> Tel - Phone: +90 222 335 05 80 - 1395
> Cep Tel - Mobile Phone: +90 532 472 00 63
> Blog URL: http://www.projedunyasi.org
> Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: t:commandButton action method not called
Posted by Murat Hazer <mu...@gmail.com>.
add this line just before facesContext.responseComplete()
facesContext.getApplication().getStateManager().saveSerializedView(
facesContext);
regards...
On 5/4/06, Le Van <lv...@it.fts-vn.com> wrote:
>
> Hi all,
> I got a problem with t:commandButton. I have Search screen. First, I push
> Search button to get data from DB. Then I push OutputCSV button to get data
> results as csv file. Everything is OK.Now I push search again, but action
> is not been called for all command button on the screen ( except
> h:commandLink can take an action). Here is my code to get data as csv.
> public String outputCSVAction() {
> FacesContext facesContext =
> FacesContext.getCurrentInstance();
> HttpServletResponse response = (HttpServletResponse)
> facesContext.getExternalContext().getResponse();
> ByteArrayOutputStream arrayOutputStream = new
> ByteArrayOutputStream();
> List dataList = pageObject.getDataList();
> for (Iterator iter = dataList.iterator(); iter.hasNext();)
> {
> TM00403ItemRow element = (TM00403ItemRow) iter.next();
> prepareCSV(element, arrayOutputStream);
> }
> response.setContentType("application/x-download;
> charset=shift_jis");
> response.setHeader("Content-disposition","attachment;
> filename=\"" + TMCommonConstants.OUTPUT_CSV + "\"");
> ServletOutputStream outputStream =
> response.getOutputStream();
> outputStream.write(arrayOutputStream.toByteArray());
> response.setContentLength(arrayOutputStream.size());
> outputStream.flush();
> outputStream.close();
> facesContext.responseComplete();
> }
> Could anyone help me ?
> Thanks for advance,
> Van Le
>
--
Murat HAZER
Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Tel - Phone: +90 222 335 05 80 - 1395
Cep Tel - Mobile Phone: +90 532 472 00 63
Blog URL: http://www.projedunyasi.org
Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
t:commandButton action method not called
Posted by Le Van <lv...@it.fts-vn.com>.
Hi all,
I got a problem with t:commandButton. I have Search screen. First, I
push Search button to get data from DB. Then I push OutputCSV button to
get data results as csv file. Everything is OK.Now I push search again,
but action is not been called for all command button on the screen (
except h:commandLink can take an action). Here is my code to get data as
csv.
public String outputCSVAction() {
FacesContext facesContext =
FacesContext.getCurrentInstance();
HttpServletResponse response = (HttpServletResponse)
facesContext.getExternalContext().getResponse();
ByteArrayOutputStream arrayOutputStream = new
ByteArrayOutputStream();
List dataList = pageObject.getDataList();
for (Iterator iter = dataList.iterator(); iter.hasNext();) {
TM00403ItemRow element = (TM00403ItemRow) iter.next();
prepareCSV(element, arrayOutputStream);
}
response.setContentType("application/x-download;
charset=shift_jis");
response.setHeader("Content-disposition","attachment;
filename=\"" + TMCommonConstants.OUTPUT_CSV + "\"");
ServletOutputStream outputStream =
response.getOutputStream();
outputStream.write(arrayOutputStream.toByteArray());
response.setContentLength(arrayOutputStream.size());
outputStream.flush();
outputStream.close();
facesContext.responseComplete();
}
Could anyone help me ?
Thanks for advance,
Van Le
Re: MyFaces J1 party 2006
Posted by Jonathan Harley <jo...@parkplatz.net>.
Jonathan Harley wrote:
> Sean Schofield wrote:
>
>> Damn sounds like its going to be fun. Too bad I can't make it.
>> *Definitely* next year. ;-)
>
> Me too. This is the JavaOne I've missed for some years. I'll
> miss the excellent beer in Thirsty Bear! Have fun!
Uh, the *first* JavaOne that I've missed for some years.
Although I never made it to a party, always too many interesting
BOFs to learn from... maybe next year.
--
.....................................................................
Dr Jonathan Harley .
. Email: jon@parkplatz.net
Zac Parkplatz Ltd . Office Telephone: 024 7633 1375
www.parkplatz.net . Mobile: 079 4116 0423
Re: MyFaces J1 party 2006
Posted by Jonathan Harley <jo...@parkplatz.net>.
Sean Schofield wrote:
> Damn sounds like its going to be fun. Too bad I can't make it.
> *Definitely* next year. ;-)
Me too. This is the JavaOne I've missed for some years. I'll
miss the excellent beer in Thirsty Bear! Have fun!
Jon.
--
.....................................................................
Dr Jonathan Harley .
. Email: jon@parkplatz.net
Zac Parkplatz Ltd . Office Telephone: 024 7633 1375
www.parkplatz.net . Mobile: 079 4116 0423
Re: MyFaces J1 party 2006
Posted by Sean Schofield <se...@gmail.com>.
Damn sounds like its going to be fun. Too bad I can't make it.
*Definitely* next year. ;-)
On 5/3/06, Jonas Jacobi <jo...@oracle.com> wrote:
>
> Hi everybody,
>
> We are now very, very close to JavaOne and I just want give you some
> heads-up regarding the annual MyFaces party. I'm pleased to say that we are
> going to host this party in the same venue as last year - Thirsty Bear - and
> that it is sponsored by: CA + Oracle = free beer/wine and food.
> *
> Location:*
> Thirsty Bear Brewing Co.
> 661 Howard Street
> San Francisco, Calif. 94105
>
> *Time:*
> Thursday, May 18th from 7:00pm - 10:00pm in the Balcon/Sillon Room.
>
> There is room for 30 and at the moment I have the following people signed
> up for the party (22 in total):
>
> *Lastname* *Firstname* Abrams Howard Byrne Dennis Clevenger Rob
> Fallows John Frohman Lance Geiler Manfred Goei Edwin Hightower Rick
> Hookom Jacob Jacobi Jonas Korhonen Kalle Mann Kito Marinschek Martin
> McClanahan Craig Reddin Greg Silvert Stan Smoak Wendy Tazi Omar
> VanMatre Gary Wessendorf Matthias Winer Adam
> Let me know if I have missed anyone or if you are interested to join us
> for a beer or two. Looking forward to meet you all at JavaOne. Note: If you
> would like to join please reply to this email with a +1 as soon as possible.
>
> Cheers,
> Jonas
>
> --
> *Author*: Pro JSF and Ajax: Building Rich Internet Components<http://apress.com/book/bookDisplay.html?bID=10044>
> *Blog*: http://www.orablogs.com/jjacobi
>
>
>