JSF: Error Message are not getting cleared
Hi,
I am facing some problem with error messages in JSF.
Here is what I am doing
1. User submits a form, server validates and sends back the error to the client error message added to Faces Context.
2. User checks the messages, changes the input and submits. assuming everything is correct now.
3. On server, it validates and writes data to response for download using the following code.
FacesContext faces = FacesContext.getCurrentInstance();
HttpServletResponse response = (HttpServletResponse)faces.getExternalContext().getResponse();
DownloadResponse.sendDownload( response, is, fileName );
faces.responseComplete();
}4. It shows the download popup to download the file. The problem here is that error message are not getting cleared off. User can still see the error message on the screen.
It seems I am missing something in JSF req-response life cycle. Anyone please point out the mistake.
SudhirMongia wrote:
4. It shows the download popup to download the file. The problem here is that error message are not getting cleared off. User can still see the error message on the screen. Wrong. The problem is that the view is not rerendered, which makes sense because you are not sending view content to the browser but your file.
Your real question probably is: how do I cause a file download and still rerender the view afterwards to show the results? To that I myself do not have the answer unfortunately, but I have seen that question come by a few times already, so doing some searches in these forums may yield you an answer.
Similar Messages
-
PI 7.1 XML messages are not getting archived.
Hi Experts,
Currently I am wotking with PI 7.1. I am trying to archive PI messages from PI Production server,and also maintianed the following parameters in SXMB_ADM.
ARCHIVE PERSIST_DURATION ASYNC 1 1
DELETION PERSIST_DURATION ASYNC 1 1
DELETION PERSIST_DURATION HISTORY 7 30
DELETION PERSIST_DURATION SYNC 2 0
DELETION PERSIST_DURATION_ERROR SYNC 3 1
Retention period
Retention Period for Asynchronous XML message in the Database
XML Messages Without Errors Awaiting Deletion 1
XML Messages Without Errors Awaiting Archiving 1
Retention Period for Synchronous XML message in the Database
XML Messages with Errors Awaiting Deletion 3
XML Messages Without Errors Awaiting Deletion 2
Retention Period for History Entries in the Database
History Entries for Deleted XML Messages 7
Messages are not getting archived.
When I execute the report "RSXMB_SHOW_REORG_STATUS"
I am geting the following output.
Msgs not in retention period (can be archived): 0
Msgs in retention period (cannot be archived): 88
Kindly suggest me what changes can be done so that PI messages will get archived from PI production server.
Regards
NaveenHi,
Please refer this thread.
[Deleting XML messages, database growing|Deleting XML messages, database growing]
Suresh -
Error messages are not posted into ECH using collect method
In asynchronous interface, Error messages are not posted into tcode:ECH_MONI_SEL using collect method.
In the collect method, passing software component version,business process and error messages.but its not posted into ech and ppo.Hi,
Have you created the FEH class for the proxy. In that, from within the PROCESS method, when there is an error you will be placing those errors into a table and this needs to be passed to the COLLECT method.
CALL METHOD i_ref_registration->collect
EXPORTING
i_single_bo = input
i_component = 'ZSWC' "Software component defined while FEH customisation
i_process = 'ECH_BP' "ECH Business process defined while FEH customisation
i_error_category = lc_errcat
i_main_message = wa_error
i_messages = lt_error
i_main_object = wa_object.
Here while populating the wa_object, the objtype field should be populated with the object type defined while FEH customization.
If all these things are done, then this should post the error.
Regards,
Abijith -
Bulky Message are not getting processed
Hi All,
Recently we have upgraded our XI systems to EHP4.
After upgrade Bulky files are not getting processed into XI system. Small files are getting processed successfully.
Earlier we had faced same issue at that time we have maintained some parameters in transaction RZ10, RZ11, SXMB_ADM-->
Integration Configuration--> HTTP time out parameter.
Same parameters are still there. But now the message is not getting processed in XI when we check into sxi_monitor. Message mapping is also not seems to be a problem as we havnt put any bulky logic over there.
The message is not getting processed ahead of Receiver Grouping . Please find attached log from Performanceheader
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Receiver Grouping
-->
- <SAP:PerformanceHeader xmlns:SAP="http://sap.com/xi/XI/Message/30">
- <SAP:RunTimeItem>
<SAP:Name type="ADAPTER_IN">INTEGRATION_ENGINE_HTTP_ENTRY</SAP:Name>
<SAP:Timestamp type="begin" host="evoxicqab">20091210134229.930472</SAP:Timestamp>
</SAP:RunTimeItem>
- <SAP:RunTimeItem>
<SAP:Name type="ADAPTER_IN">INTEGRATION_ENGINE_HTTP_ENTRY</SAP:Name>
<SAP:Timestamp type="end" host="evoxicqab">20091210134232.052577</SAP:Timestamp>
</SAP:RunTimeItem>
- <SAP:RunTimeItem>
<SAP:Name type="CORE">INTEGRATION_ENGINE</SAP:Name>
<SAP:Timestamp type="begin" host="evoxicqab">20091210134232.059576</SAP:Timestamp>
</SAP:RunTimeItem>
- <SAP:RunTimeItem>
<SAP:Name type="CORE">INTEGRATION_ENGINE</SAP:Name>
<SAP:Timestamp type="end" host="evoxicqab">20091210134232.07151</SAP:Timestamp>
</SAP:RunTimeItem>
- <SAP:RunTimeItem>
<SAP:Name type="DBQUEUE">DB_ENTRY_QUEUING</SAP:Name>
<SAP:Timestamp type="begin" host="evoxicqab">20091210134232.071518</SAP:Timestamp>
</SAP:RunTimeItem>
- <SAP:RunTimeItem>
<SAP:Name type="DBQUEUE">DB_ENTRY_QUEUING</SAP:Name>
<SAP:Timestamp type="end" host="evoxicqab">20091210134237.239947</SAP:Timestamp>
</SAP:RunTimeItem>
- <SAP:RunTimeItem>
<SAP:Name type="PLSRV">PLSRV_RECEIVER_DETERMINATION</SAP:Name>
<SAP:Timestamp type="begin" host="evoxicqab">20091210134237.241179</SAP:Timestamp>
</SAP:RunTimeItem>
- <SAP:RunTimeItem>
<SAP:Name type="PLSRV">PLSRV_RECEIVER_DETERMINATION</SAP:Name>
<SAP:Timestamp type="end" host="evoxicqab">20091210134237.250385</SAP:Timestamp>
</SAP:RunTimeItem>
- <SAP:RunTimeItem>
<SAP:Name type="PLSRV">PLSRV_INTERFACE_DETERMINATION</SAP:Name>
<SAP:Timestamp type="begin" host="evoxicqab">20091210134239.999045</SAP:Timestamp>
</SAP:RunTimeItem>
- <SAP:RunTimeItem>
<SAP:Name type="PLSRV">PLSRV_INTERFACE_DETERMINATION</SAP:Name>
<SAP:Timestamp type="end" host="evoxicqab">20091210134240.001292</SAP:Timestamp>
</SAP:RunTimeItem>
- <SAP:RunTimeItem>
<SAP:Name type="PLSRV">PLSRV_RECEIVER_MESSAGE_SPLIT</SAP:Name>
<SAP:Timestamp type="begin" host="evoxicqab">20091210134240.001413</SAP:Timestamp>
</SAP:RunTimeItem>
- <SAP:RunTimeItem>
<SAP:Name type="PLSRV">PLSRV_RECEIVER_MESSAGE_SPLIT</SAP:Name>
<SAP:Timestamp type="end" host="evoxicqab">20091210134240.026156</SAP:Timestamp>
</SAP:RunTimeItem>
- <SAP:RunTimeItem>
<SAP:Name type="DBQUEUE">DB_SPLITTER_QUEUING</SAP:Name>
<SAP:Timestamp type="begin" host="evoxicqab">20091210134240.026164</SAP:Timestamp>
</SAP:RunTimeItem>
</SAP:PerformanceHeader>Hi
Have you checked this thread, same discussion here
Performance of XI Interfaces
Also check this blog
/people/michal.krawczyk2/blog/2006/06/08/xi-timeouts-timeouts-timeouts
Regards
Ramesh -
Error message area not expanded per default - but i want it expanded
Hello,
per default the error message area in web ui is NOT expanded. But I would like to have it expanded per default. But i cannot find the right area to change this behaviour.
Does anyone have an idea how to change it to be expanded per default?
Many thanks for your ideas and input.
BR AndreasThanks to your reply i found it pretty well documented in help.sap.com:
http://help.sap.com/SCENARIOS_BUS2010/helpdata/EN/cb/659ebfc880493baad66896518a55a1/frameset.htm
Edited by: andreas lehner on Jan 30, 2012 10:01 AM -
Dynamic mandatory field error message is not getting displayed in webui
Hi,
In Appointment if the importance is HIGH i made Location as mandatory.For this i enhanced BT126H_APPT/ApptDetails. In the get_p_location() method of BTACTIVITYYH i have written the code.
Now the problem is Error message for this dynamic mandatory field is not getting displayed in webui.
I debugged in DO_FINISH_INPUT error message is getting generated but it is not getting displayed in ui.
Can anybody tell where the problem is?
Thanks,
Hari.Hi Hari,
Really sorry do not know how to convert this nug file to text
How ever quick solution for your problem would be just keep your validation in 'DO_VALIDATE_INPUT' method of the view controller.
Means even if the User clicks on SAVE , Since it fails here , it would not allow you to go further.
Thanks,
Rajesh P -
Error message is not getting displayed in customized subscreen
Hi Experts,
I have created customized sub screen for transaction BP. There are two fields namely CPS applicable and PPS applicable.
I am validating both fields against value if user enters same value as Y and Y . Then Error message should display
saying that 'It should not be same and please change the entry'. Its working fine when press enter on the sub screen.
But its not working where if users try to save the entries without entering enter button.
Please help me anyone regarding this issue.
Thanks
Ramesh ManoharanHi ,
you can do validations at Save Using BADI or Events ( please ref DEZ_'s Posting), in my case im using BADI to do validation , reason is...user was able to save witout going to the custom tab , thats y im using BADI and Screen(Custom) Validations.
regards
Prabhu -
LSO_CHECK_BOOKING custom error messages are not displayed
Hi,
Good day! I am currently experiencing some problems displaying custom error messages from BADI LSO_CHECK_BOOKING. I have implemented this Badi and is appending error messages in CT_MESSAGE_TAB however when the message is displayed in portal, the custom message is not displayed. Instead, SAP displays a predefined error "Error When Creating Prebooking with the data entered..."
Is there a way for me to display my custom error message instead of the predefined SAP message?
Thanks a lot.
Cheers,
JamesHi James,
You have not mentioned, which portal you are using. Please see below, that there are differences in the learning and the admin portal:
Learning Portal:
The framework of the existing design of the Learning Portal does not
allow customer specific error messages to be displayed in the portal.
Only a generic message will be displayed when prebooking in the learning
portal if the BADI LSO_CHECK_BOOKING returns an error. The design of the
application does not expect to raise an exception from the BADI. If the
BADI processing is assumed to be unsuccessful, the messages filled by
the BADI will be ignored and a general error message will be displayed
in the portal.
So this is basically a design limitation.
Administrator Portal:
Have you tried e.g. the following notes?
SAP Note 1806593 Admin Portal: Message is not displayed while prebooking
SAP Note 1575238 LSO: BADI LSO_CHECK_BOOKING does not show warning messages
Regards,
Agnes -
My text messages are not getting received?
I have had this problem with 2 different people that they are not receiving my text messages they appear to be going thru not saying it's a send fail???
As with email, after an SMS/MMS is successfully sent, what happens to the message after that has nothing to do with the cell phone that sent the message.
Ask the recipients to contact their carrier and you do the same. -
I'm trying to fix the below error message but not get success..
Can someone help me to resolve the following error message..
The error is coming while Update Statistics runs.
Message
Executed as user: \SqlAdmin. ...ssary... [_WA_Sys_00000008_0425A276], update is not necessary... 0 index(es)/statistic(s) have been updated, 6 did not require update. Updating [dbo].[MSreplication_monitordata]
[nc2MSreplication_monitordata], update is not necessary... [nc6MSreplication_monitordata], update is not necessary... 0 index(es)/statistic(s) have been updated, 2 did not require update.
Updating [dbo].[MSsync_states] [ucMSsyncstates], update is not necessary... [_WA_Sys_00000002_0519C6AF], update is not necessary... [_WA_Sys_00000003_0519C6AF], update is not necessary...
0 index(es)/statistic(s) have been updated, 3 did not require update. Updating [dbo].[MSsubscriptions] [ucMSsubscriptions], update is not necessary... [iMSsubscriptions], update is not
necessary... [iMSsubscriptions2], update is not necessary... [_WA_Sys_00000002_060DEAE8], update is not necessary... ... The package execution fa... The step failed.As v.vt says, the message is truncated, and the actual error message appears to have been lost.
Does this happens repeatedly, or was it only the most recent execution that failed?
Erland Sommarskog, SQL Server MVP, [email protected] -
I do not know what the problem is, but after the latest update it is really hard to send text messages. It is taking alot of time to send the messages, it is not the problem with the carrier because sending text messages with the same number in the same area is really easy on my normal nokia 1100. Please suggest me what I should check. Second problem I am facing is the carrier signal drops to nothing when I turn on the cellular data. It has to then search for the network and connect again the same happens when I turn the data off again. Please tell a solution. I do not think it is the problem with the hardware because the phone is hardly 2weeks old and everything was working properly with ios 6. It initaly had problem with the battery on updating to ios7 but that was rectified with the new update but again these are the new issues am facing.
This may sound stupid, but I'm gonna throw it out there anyway. Is it possible, that if I have enough junk on my desktop it might disrupt the signal? It seems odd, but it kind of looks like my signal is strong and relatively steady now that I've cleaned my desktop. I do tend to get very cluttered. I use a lot of reference images and save text clippings to use later... it just piles up very quickly.
So, I wonder if all that extra effort my system has to do keeping up with the junk might have something to do with the drop outs? -
Customer invoices are not getting cleared when lockbox file imported in sap
Hello ,
When the lockbox file is imported into SAP , it is not able to clear customer invoices. It creates SAP documents and payment advices but not able to apply the payments to customers accounts.
Can anyone suggest on this with possible solutions.
Regards,
sureshHi,
You have to check the invoices are being match. The options are the following according to selection screen in FLB2:
Document numbers (BELNR)
Reference document numbers (XBLNR)
Document number first, if not found: reference doc. number
Reference document number first, if not found: doc. number
Document number first, then reference and amount
You have to check if the information which is coming in the file is the same present in the invocies in the ERP.
Also check the settings in OBAX and OBAy.
REgards,
Renan Correa -
The custm error page is not getting loaded in TomCat 5.0
Hi all,
I am working on a JSF web application deployed in Tomcat 5.0.I was trying to redirect 404 and 500 error pages to custom error pages.But the error pages are not getting loaded and i am getting normal Tocat 404 status page.
I am giving the web.xml entry for the error page defenition.
<error-page>
<error-code>404</error-code>
<location>/faces/displayErrorpage.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/faces/SessionExpirepage.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/faces/displayErrorpage.jsp</location>
</error-page>
Please help me out to solve this problem.Its urgent.I will be greatful for any kind of help.
Note: The same application working fine,ie,the error page is getting loaded while deploying WAS 6.0.
Jeevan Edakkunnath.That's a specification version. I was asking for the implementation and version. Is it the Sun reference implementation (Sun JSF RI)? If so, which build?
It works flawlessly here on the latest build of Sun JSF RI 1.1, the 1.1_02. You can get the latest build at [http://javaserverfaces.dev.java.net]. I was using Tomcat 6.0.14 by the way, it might make difference.
Does it work if you use plain vanilla JSP files and do not pass the request through the FacesServlet? I recall some bugs related to it, but I am not sure anymore if it is related to the JSF implementation or application server used. -
Problem in ABAP Proxy(sometimes XML Messages are not being created)
Hi,
I am trying to send the data from ECC to CRM when post goods issue is done for a delivery from ECC side. I called my proxy method in BADI : DELIVERY_PUBLISH.
And after calling the method, I used commit work also.
But the problem is, some times it is working fine. and some times the XML messages are not getting created. When I go in debug, looks everything is fine.
I am unable to understand why this inconsistency.
Could you please help me out, do I need to take any more precautions.
Thanks,
SandeepYou mean you can't find any message in SXMB_MONI of your ECC or is it XI where you can't see message?
If you have not checked in SXMB_MONI of ECC then may be messages are created but they are going into error and that's why you are not able to see any message in XI. -
SOCO requiremnts not getting cleared.
Hello Freinds,
I am working on SRM 5.0 classic scenario( with support pack 11). The requiremnts are not getting cleared although follow on docs are created for them ( PO). This is happening for only goods shopping carts and not for the limit.
Any inputs on this will be highly appriciated.
Regards
SRM USERHi Muthu ,
I have check the code , But i sisnt see any difference , Infact we didn done any change recently . It was working fine beofre support pack and still working fine in another system aftter support pack .this Badi code is same in the both systems .
you can also have look into this code.zsrm_sourcing is a custom table where we are maintaing document type and account assignment catogory for catalog items.
Thank you .
Get details of shopping cart.
CALL FUNCTION 'BBP_PD_SC_ITEM_GETDETAIL'
EXPORTING
i_guid = item_bbp_guid
IMPORTING
E_ITEM = ls_item
ET_ATTACH = lt_attach
TABLES
E_ACCOUNT = lt_account
E_PARTNER = lt_partner.
If lt_attach got any records sourcing needs to be done.
SET SOURCING parameter to 'X'.
IF lt_attach[] IS NOT INITIAL.
SOURCING = 'X'.
EXIT.
ENDIF.
If lt_partner doenst contain a fixed vendor, sourcing
needs to be carried out.
READ TABLE lt_partner TRANSPORTING NO FIELDS
WITH KEY partner_fct = c_vendor. " Fixed vendor
IF NOT sy-subrc IS INITIAL.
SOURCING = 'X'.
EXIT.
ELSE.
If there is a fixed vendor, but item is not assigned to
account assignment category, EXPENSE or INTERNAL ORDER .
Sourcing needs to be carried out for this case.
Load table with sourcing rules
SELECT * FROM zsrm_sourcing
INTO TABLE lt_sourcing.
CLEAR SOURCING.
LOOP AT lt_account ASSIGNING <fs_account>.
READ TABLE lt_sourcing TRANSPORTING NO FIELDS
WITH KEY acc_cat = <fs_account>-acc_cat
skip_sourcing = c_x.
IF sy-subrc IS NOT INITIAL.
SOURCING = 'X'.
EXIT.
ENDIF.
ENDLOOP.
ENDIF.
Maybe you are looking for
-
No sound on YouTube or text alerts since ios8
I get no sound from YouTube when clicking from links in Facebook or emails. Text alert tones also stop working randomly and it won't play alert tones in sounds settings. Ring tones are fine and I'm not using custom tones. Sure a reboot fixes it tempo
-
PDX index works in adobe reader 9.4 but not in adobe X !!
Hello I have some commercial genealogy DVD's, bought a few years ago, with PDX files on them that work fine with adobe reader 9.4 but not in adobe reader X. Adobe reader X says they are invalid PDX index files. Ofcourse adobe says that version X
-
Synchroniz​e Z10 calender with gmail and Outlook
I'm currently having experiencing some difficulties in sync between BBLINK and my Z10. Each new item that I add to my Z10 calendar it doesn't show up in Google calendar nor in Outlook. Can someone please tell me how to fix this? Tks
-
I want to download v6, but can only find v7. Browser stats say that most users currently have v6, so this is the version I want to test our website in, but can't find it to download.
-
Idiots guide to cloning OS Snow Leopard
I'm contemplating doing my first every OS upgrade to Mountain Lion, but am nervous given a fairly large number of complaints. In trying to figure out how I would do this safely, cloning seems to be what I'm reading in these forums. But none seem to