Multiple calls of action method after exception during update model phase
using: Sun RI 1.1_01
Situation: have a view with
* a field that has a value binding to a setter that can throw an exception, with a message tag
* a command button bound to an action method
Enter a value in the field that will trigger the exception. You will get the same page again, with a message from the exception; the action method is not called.
Now change the value to something that will be accepted by the setter. The action method will now be called twice.
I presume this is a bug?
On code inspection of the RI 1.1_01, it turns out that an EvaluationException is thrown, which is translated by the ValueBindingImpl#setValue method into another EvaluationException, after posting the exception message as JSF message. This method is run inside UIInput updateModel, which essentially sets valid to false. This will result in interrupting the normal phase cycle, and makes us jump to render response, as expected.
Now all this happens during the update model phase, and earlier an event for the application phase was posted, to trigger execution of the action method. Since we did not reach the application phase, this event is never executed, but also it is never removed from the event List structure.
It is lurking inside the UIViewRoot, and is still there in the next request/response cycle. If in this next cycle, there is no more interruption, we will eventually reach the application phase, but there we now have 2 events waiting to be executed. As a result, the action method will be called twice.
If you trigger the exception in the setter more often, all action events will be saved for the next cycles. If you trigger the exception n times, the action method will be executed n+1 times the first time there is a submit with no exception.
This can not be intended behavior, can it?
BTW: MyFaces does this in UIViewRoot:
public void processUpdates(FacesContext context) {
if (context == null) throw new NullPointerException("context");
super.processUpdates(context);
_broadcastForPhase(PhaseId.UPDATE_MODEL_VALUES);
if (context.getRenderResponse() || context.getResponseComplete())
clearEvents();
}Events are cleared. Guess we are switching, then.
Similar Messages
-
How to call a javascript method after table load on JSFF Fragment load?
Hello,
The usecase is to invoke a javascript method after table is done loading (fetching data) when user lands to a JSFF fragment. With JSPX pages I can achieve that by using PagePhaseListener. I have tried with RegionController as follows, and the problem i face is that I cannot prevent multiple calls to the Javascript call when user presses a tab or button in a screen, or changes drop-down value with autosubmit on.
import javax.faces.context.FacesContext;
import oracle.adf.model.RegionBinding;
import oracle.adf.model.RegionContext;
import oracle.adf.model.RegionController;
import org.apache.myfaces.trinidad.render.ExtendedRenderKitService;
import org.apache.myfaces.trinidad.util.Service;
public class MyListener implements RegionController{
public MyListener() {
super();
@Override
public boolean refreshRegion(RegionContext regionContext) {
int refreshFlag = regionContext.getRefreshFlag();
System.out.println("Render flag is: "+refreshFlag);
if (refreshFlag == RegionBinding.PREPARE_MODEL)
initializeMethod();
regionContext.getRegionBinding().refresh(refreshFlag);
return false;
public boolean validateRegion(RegionContext regionContext) {
regionContext.getRegionBinding().validate();
return false;
public boolean isRegionViewable(RegionContext regionContext) {
return regionContext.getRegionBinding().isViewable();
public void initializeMethod() {
FacesContext f = FacesContext.getCurrentInstance();
ExtendedRenderKitService service = Service.getRenderKitService(f, ExtendedRenderKitService.class);
service.addScript(f, "myJSFunction();");
@Override
public String getName() {
return null;
I need the javascript to be called only once after the table is done loading when user lands to a fragment (jsff).
Any ideas appreciated?
JDeveloper version is 11.1.1.5.0
Thank you.
Valon
Edited by: Valon on Apr 11, 2013 3:10 PMOne of the requirements is to compare every row with the next row and highlight the changes. There are other requirements as well where JavaScript solution is used.
The question remains the same. Is it doable or not without changing the solution from JavaScript solution to server-side solution ? Can we call a JavaScript only once when the user lands to a jsff fragment ?
Hope that is clear.
Thanks.
Valon -
How to call a javascript method after the PPR event has finished ?
Hi!
How can we make a javascript method get called after the processing of ADF PPR event?
My specific use case is,
I want to call a javascript function after the data in the table is loaded...
In 10g, that is not a problem, as the data used to get loaded directly during onLoad, and so i would call my js function on load;
but in 11g , the table data is being loaded through PPR which is initiated onload, and so i needed to call my function after the PPR Response processing has been done; for which I need the name of the event triggered at that instance.
Is it possible to do this?
Regards,
SambaHey, I got it.
I handled the ADF Controller's PREPARE_RENDER_ID phase of the lifecycle, and then called the
script to get Executed.
The code :
public void afterPhase(PagePhaseEvent pagePhaseEvent) {
FacesPageLifecycleContext ctx = (FacesPageLifecycleContext)pagePhaseEvent.getLifecycleContext();
if (pagePhaseEvent.getPhaseId() == Lifecycle.PREPARE_RENDER_ID) {
if(AdfFacesContext.getCurrentInstance().isPostback() )
afterRender();
}is written in lifecycle listener , and my backing bean extended this listener ,
and in the afterRender() method I did this :
public void afterRender(){
System.out.println("AFTER RENDER CALLED");
FacesContext context = FacesContext.getCurrentInstance();
ExtendedRenderKitService service = (ExtendedRenderKitService)Service.getRenderKitService(context, ExtendedRenderKitService.class);
service.addScript(context, "translate();");
}That's it.
It did work, magnificently.
Thanks for the idea.
Regards,
Samba -
Calling an action method in a controller from an iframe
I am not able to call an action command in the page flow controller from an iframe.
Currently, it just skips it. Is there a way to do it or it is a bug. I am using
portal 8.1.
Thanks, SB.I think JButton.doClick() will do what you want
-
Not calling the action method??
hi ..
now i up with some common problem...
i said as common problem coz i dont know where the error is occuring.
here is the description.
In my jsp
i am having a panel tabbed pane with 2 panes.
first pane contains some 20 text boxes with save button, used to save the entered records to the database.
second pane contains the summary page which displays all the records from the respected table with select option button(radio). By selecting the single radio button we can edit the particular record by getting the same in the first tabbed pane fields...
(here, i am using a javascript to select any one radio button in the form coz radio buttons are generated thru datatable)
In java
======
in constructor
i populate all the data from the table to a list. and i display the populated data to the summay fields.
save button action
saving the data to the table
edit the value
updating the edited values
Here, my problem is after entering all the fields in the first tabbed pane
i click the save button. if there is no data in the table(database) all things working properly, but if there single data, save function is not calling. but the constructor are calling properly.
i am using hibernate for the database conn.
i know this is some sort of logical error, i am posting this only if any one who had already face this type of error(might be in setting session values).. suggestions plz..Hi;
Your question is not related wiht Download forum side, Please post your issue on related Forum side:
Forum Home » Developer Tools » JDeveloper and ADF
Regard
Helios -
PL SQL with multiple inserts, how to continue after exception is raised
Hi,
I have a simple PL SQL function with various inserts. ex:
Insert Into "DI01"."DUA_DIM_UNITE_ADMIN" (Ide_Unite_Admin_Sk, Num_Unite_Admin, Des_Unite_Admin) Values ('-1', '00000000', 'Défaut');
INSERT INTO "DI01"."DUA_DIM_UNITE_ADMIN" (IDE_UNITE_ADMIN_SK, NUM_UNITE_ADMIN, DES_UNITE_ADMIN) VALUES ('-2', 'S. O.', 'Sans Objet');
Insert Into "DI01"."DCU_DIM_CATGR_UNSPS" (Ide_Catgr_Sk, Num_Code, Des_Code, Num_Catgr, Des_C.........
I want to be able to run the function multiple times, and have all the inserts executed everytime, even if I get a ORA-00001 unique constraint (string.string) violated error in on of the inserts. That means that if I get an error in the first insert, I want the function to continue running and executing the consecutive inserts.
I though of including each insert in a different block, like:
BEGIN
Insert......
When Exception then null;
END;
BEGIN
Insert......
When Exception then null;
END;
But I have at least 50 inserts, so the final code becomes huge.
Another solution is to use merge inseat of insert, but the code seems too complex for such a simple task.
Is there any other solution for this that I am not seeing?
Thank you for your time,
Joao MoreiraYou can use DML error logging approach or FORALL SAVE EXCEPTIONS.
Since you didn't mention the version I assume you are using 11g.
Below is the sample code for DML error logging mechanism
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
SQL> DROP TABLE tableA;
Table dropped.
SQL> DROP TABLE Err$_tableA;
Table dropped.
SQL>
SQL> CREATE TABLE tableA
2 (
3 col1 NUMBER PRIMARY KEY,
4 col2 NUMBER,
5 col3 VARCHAR2 (10)
6 );
Table created.
SQL>
SQL> -- Create error log table
SQL>
SQL> BEGIN
2 DBMS_ERRLOG.create_error_log (dml_table_name => 'TABLEA');
3 END;
4 /
PL/SQL procedure successfully completed.
SQL>
SQL> BEGIN
2 FOR i IN (SELECT 1 AS col1 FROM DUAL
3 UNION ALL
4 SELECT 1 FROM DUAL)
5 LOOP
6 INSERT INTO tableA (col1)
7 VALUES (i.col1)
8 LOG ERRORS INTO Err$_tableA REJECT LIMIT UNLIMITED;
9 END LOOP;
10
11 COMMIT;
12 END;
13 /
PL/SQL procedure successfully completed.
SQL> column column_name format a30
SQL> set linesize 300
SQL> select * from tableA;
SQL> select * from err$_tablea;
Thanks,
GPU -
Call defaults to Speakerphone after BB World update.
About two weeks ago, I updated my Z10 OS to 10.2.1.537 and its been okay. I logged unto my BB World yesterday after a long time and was prompted to update my apps. I had not updated these in a very long time. I made the dowloads and updated all apps and have since had this problem. All call I make and receive will default to speaker phone and the screen does not respond when I try to change the audio to handset. I am only able to change this to headset or handset when I connet my aerphones. Regardless all calls incoming or outgoing defaults to speakerphone even when the earphones are connected. I'll very much appreciate any assistance towards getting this resolved.
Thanks a lot pal. App worl icon is appearing now.
-
Call log history problem after 10.3 update
Hi
I updated my blackberry Z3 last week to 10.3 . every thing is working fine except the call log history.
my phone not able to retain call history for more than 3 to 4 days. i restored it to factory setting, but nothing helped.
Thanks in advanceTake a look at http://www.blackberry.com/btsc/KB36134
It doesn't refer to the first error, but it does the second.
- Ira -
Uncaught Javascript Exception during create file phase of Merge to HDR Pro.
Provide a descriptive title that includes your OS information:
I am trying to create an HDR file from several large merged panoramas, and everything seems to go very well whichever options I select until the point comes when photoshop tries to create the final file. The individual layers of the HDR are 40188x6848 and saved as PSB files, when loaded they fill the entire 8Gb of memory in my machine.
I am using Windows Vista 64, my graphics card is unsupported and so turned off, I have photoshop setup to use 3 scratch disks, and it appears to be using around 40Gb on the first one and none on others.
Provide concise, step-by-step details on how to reproduce the issue you are seeing.
Select File > Automate > Merge to HDR Pro
Select the 5 HDR layer files, check attempt to automatically align layers
Make a cup of tea, you're in for a wait.
Set the EV levels of the files
Select any options you want from the next panel, I've tried most of them by now.
Sit back and wait for the following screen:
Provide a description of the "Expected Result":
Photoshop should have brought up a file containing the merged images, which I could then save to disk.
Provide your System Info from Photoshop:
Adobe Photoshop Version: 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00) x64
Operating System: Windows Vista 64-bit
Version: 6.0 Service Pack 2
System architecture: AMD CPU Family:15, Model:15, Stepping:2 with MMX, SSE Integer, SSE FP, SSE2, SSE3
Physical processor count: 1
Processor speed: 1808 MHz
Built-in memory: 8062 MB
Free memory: 1083 MB
Memory available to Photoshop: 7149 MB
Memory used by Photoshop: 72 %
Image tile size: 132K
Image cache levels: 4
OpenGL Drawing: Disabled.
OpenGL Drawing Mode: Basic
OpenGL Allow Normal Mode: False.
OpenGL Allow Advanced Mode: False.
OpenGL Allow Old GPUs: Not Detected.
Video Card Vendor: NVIDIA Corporation
Video Card Renderer: GeForce 6150SE nForce 430/PCI/SSE2
Display: 1
Display Bounds:= top: 0, left: 0, bottom: 1024, right: 1280
Video Card Number: 1
Video Card: NVIDIA GeForce 6150SE nForce 430
OpenCL Unavailable
Driver Version: 8.17.12.7533
Driver Date: 20110521050100.000000-000
Video Card Driver: nvd3dumx.dll,nvd3dum
Video Mode: 1280 x 1024 x 4294967296 colors
Video Card Caption: NVIDIA GeForce 6150SE nForce 430
Video Card Memory: 128 MB
Video Rect Texture Size: 4096
Serial number: Tryout Version
Application folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\
Temporary file path: C:\Users\MARTIN~1\AppData\Local\Temp\
Photoshop scratch has async I/O enabled
Scratch volume(s):
H:\, 279.5G, 57.9G free
D:\, 149.0G, 121.9G free
E:\, 74.5G, 13.9G free
Required Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Required\
Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Plug-ins\
Additional Plug-ins folder: not set
Installed components:
A3DLIBS.dll A3DLIB Dynamic Link Library 9.2.0.112
ACE.dll ACE 2012/01/18-15:07:40 66.492997 66.492997
adbeape.dll Adobe APE 2012/01/25-10:04:55 66.1025012 66.1025012
AdobeLinguistic.dll Adobe Linguisitc Library 6.0.0
AdobeOwl.dll Adobe Owl 2012/02/09-16:00:02 4.0.93 66.496052
AdobePDFL.dll PDFL 2011/12/12-16:12:37 66.419471 66.419471
AdobePIP.dll Adobe Product Improvement Program 6.0.0.1642
AdobeXMP.dll Adobe XMP Core 2012/02/06-14:56:27 66.145661 66.145661
AdobeXMPFiles.dll Adobe XMP Files 2012/02/06-14:56:27 66.145661 66.145661
AdobeXMPScript.dll Adobe XMP Script 2012/02/06-14:56:27 66.145661 66.145661
adobe_caps.dll Adobe CAPS 5,0,10,0
AGM.dll AGM 2012/01/18-15:07:40 66.492997 66.492997
ahclient.dll AdobeHelp Dynamic Link Library 1,7,0,56
aif_core.dll AIF 3.0 62.490293
aif_ocl.dll AIF 3.0 62.490293
aif_ogl.dll AIF 3.0 62.490293
amtlib.dll AMTLib (64 Bit) 6.0.0.75 (BuildVersion: 6.0; BuildDate: Mon Jan 16 2012 18:00:00) 1.000000
ARE.dll ARE 2012/01/18-15:07:40 66.492997 66.492997
AXE8SharedExpat.dll AXE8SharedExpat 2011/12/16-15:10:49 66.26830 66.26830
AXEDOMCore.dll AXEDOMCore 2011/12/16-15:10:49 66.26830 66.26830
Bib.dll BIB 2012/01/18-15:07:40 66.492997 66.492997
BIBUtils.dll BIBUtils 2012/01/18-15:07:40 66.492997 66.492997
boost_date_time.dll DVA Product 6.0.0
boost_signals.dll DVA Product 6.0.0
boost_system.dll DVA Product 6.0.0
boost_threads.dll DVA Product 6.0.0
cg.dll NVIDIA Cg Runtime 3.0.00007
cgGL.dll NVIDIA Cg Runtime 3.0.00007
CIT.dll Adobe CIT 2.0.5.19287 2.0.5.19287
CoolType.dll CoolType 2012/01/18-15:07:40 66.492997 66.492997
data_flow.dll AIF 3.0 62.490293
dvaaudiodevice.dll DVA Product 6.0.0
dvacore.dll DVA Product 6.0.0
dvamarshal.dll DVA Product 6.0.0
dvamediatypes.dll DVA Product 6.0.0
dvaplayer.dll DVA Product 6.0.0
dvatransport.dll DVA Product 6.0.0
dvaunittesting.dll DVA Product 6.0.0
dynamiclink.dll DVA Product 6.0.0
ExtendScript.dll ExtendScript 2011/12/14-15:08:46 66.490082 66.490082
FileInfo.dll Adobe XMP FileInfo 2012/01/17-15:11:19 66.145433 66.145433
filter_graph.dll AIF 3.0 62.490293
hydra_filters.dll AIF 3.0 62.490293
icucnv40.dll International Components for Unicode 2011/11/15-16:30:22 Build gtlib_3.0.16615
icudt40.dll International Components for Unicode 2011/11/15-16:30:22 Build gtlib_3.0.16615
image_compiler.dll AIF 3.0 62.490293
image_flow.dll AIF 3.0 62.490293
image_runtime.dll AIF 3.0 62.490293
JP2KLib.dll JP2KLib 2011/12/12-16:12:37 66.236923 66.236923
libifcoremd.dll Intel(r) Visual Fortran Compiler 10.0 (Update A)
libmmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 10.0
LogSession.dll LogSession 2.1.2.1640
mediacoreif.dll DVA Product 6.0.0
MPS.dll MPS 2012/02/03-10:33:13 66.495174 66.495174
msvcm80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcm90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
msvcp100.dll Microsoft® Visual Studio® 2010 10.00.40219.1
msvcp80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcp90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
msvcr100.dll Microsoft® Visual Studio® 2010 10.00.40219.1
msvcr80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcr90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
pdfsettings.dll Adobe PDFSettings 1.04
Photoshop.dll Adobe Photoshop CS6 CS6
Plugin.dll Adobe Photoshop CS6 CS6
PlugPlug.dll Adobe(R) CSXS PlugPlug Standard Dll (64 bit) 3.0.0.383
PSArt.dll Adobe Photoshop CS6 CS6
PSViews.dll Adobe Photoshop CS6 CS6
SCCore.dll ScCore 2011/12/14-15:08:46 66.490082 66.490082
ScriptUIFlex.dll ScriptUIFlex 2011/12/14-15:08:46 66.490082 66.490082
tbb.dll Intel(R) Threading Building Blocks for Windows 3, 0, 2010, 0406
tbbmalloc.dll Intel(R) Threading Building Blocks for Windows 3, 0, 2010, 0406
TfFontMgr.dll FontMgr 9.3.0.113
TfKernel.dll Kernel 9.3.0.113
TFKGEOM.dll Kernel Geom 9.3.0.113
TFUGEOM.dll Adobe, UGeom© 9.3.0.113
updaternotifications.dll Adobe Updater Notifications Library 6.0.0.24 (BuildVersion: 1.0; BuildDate: BUILDDATETIME) 6.0.0.24
WRServices.dll WRServices Friday January 27 2012 13:22:12 Build 0.17112 0.17112
wu3d.dll U3D Writer 9.3.0.113
Required plug-ins:
3D Studio 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Accented Edges 13.0
Adaptive Wide Angle 13.0
ADM 3.11x01
Angled Strokes 13.0
Average 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Bas Relief 13.0
BMP 13.0
Camera Raw 7.0
Chalk & Charcoal 13.0
Charcoal 13.0
Chrome 13.0
Cineon 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Clouds 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Collada 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Color Halftone 13.0
Colored Pencil 13.0
CompuServe GIF 13.0
Conté Crayon 13.0
Craquelure 13.0
Crop and Straighten Photos 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Crop and Straighten Photos Filter 13.0
Crosshatch 13.0
Crystallize 13.0
Cutout 13.0
Dark Strokes 13.0
De-Interlace 13.0
Dicom 13.0
Difference Clouds 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Diffuse Glow 13.0
Displace 13.0
Dry Brush 13.0
Eazel Acquire 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Embed Watermark 4.0
Entropy 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Extrude 13.0
FastCore Routines 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Fibers 13.0
Film Grain 13.0
Filter Gallery 13.0
Flash 3D 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Fresco 13.0
Glass 13.0
Glowing Edges 13.0
Google Earth 4 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Grain 13.0
Graphic Pen 13.0
Halftone Pattern 13.0
HDRMergeUI 13.0
IFF Format 13.0
Ink Outlines 13.0
JPEG 2000 13.0
Kurtosis 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Lens Blur 13.0
Lens Correction 13.0
Lens Flare 13.0
Liquify 13.0
Matlab Operation 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Maximum 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Mean 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Measurement Core 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Median 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Mezzotint 13.0
Minimum 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
MMXCore Routines 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Mosaic Tiles 13.0
Multiprocessor Support 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Neon Glow 13.0
Note Paper 13.0
NTSC Colors 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Ocean Ripple 13.0
Oil Paint 13.0
OpenEXR 13.0
Paint Daubs 13.0
Palette Knife 13.0
Patchwork 13.0
Paths to Illustrator 13.0
PCX 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Photocopy 13.0
Photoshop 3D Engine 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Picture Package Filter 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Pinch 13.0
Pixar 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Plaster 13.0
Plastic Wrap 13.0
PNG 13.0
Pointillize 13.0
Polar Coordinates 13.0
Portable Bit Map 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Poster Edges 13.0
Radial Blur 13.0
Radiance 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Range 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Read Watermark 4.0
Reticulation 13.0
Ripple 13.0
Rough Pastels 13.0
Save for Web 13.0
ScriptingSupport 13.0
Shear 13.0
Skewness 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Smart Blur 13.0
Smudge Stick 13.0
Solarize 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Spatter 13.0
Spherize 13.0
Sponge 13.0
Sprayed Strokes 13.0
Stained Glass 13.0
Stamp 13.0
Standard Deviation 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Sumi-e 13.0
Summation 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Targa 13.0
Texturizer 13.0
Tiles 13.0
Torn Edges 13.0
Twirl 13.0
U3D 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Underpainting 13.0
Vanishing Point 13.0
Variance 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Variations 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Water Paper 13.0
Watercolor 13.0
Wave 13.0
Wavefront|OBJ 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
WIA Support 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
Wind 13.0
Wireless Bitmap 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00)
ZigZag 13.0
Optional and third party plug-ins: NONE
Plug-ins that failed to load: NONE
Flash:
Mini Bridge
Kuler
Installed TWAIN devices: NONE
If anyone wants the source images let me know and I'll upload them somewhere, though that process will take a couple of days because they're not small.Hi Martin,
Per my private message, the "uncaught JavaScript" exception is something we've seen and have yet to determine a cause or solution.
Would you please try the following.
• Do you have following Preferences > Interface settings ON? If they're OFF, does it work if you turn them on?
- Open Documents as Tabs
- Enable Floating Document Window Docking
• Does Merge to HDR work for you at all with smaller files (such as those in the sample set inside the application folder for CS5)?
• Do other scripts work for you, specifically...
- File > Scripts > Load Files into Stack... ?
- File > Automate > Photomerge...?
• Have you tried restarting with deleted preferences? http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-74aaa.h tml
The HDR screen image preview going black is a known issue related to low-system memory conditions that we have been working on a solution for.
In the meantime, the workaround would be to lower Photoshop's memory usage from your current (72%) down to as low as (50%).
Purging memory may help: http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-748aa.h tml
What was the "entirely new error message"? And is the Uncaught Exception the "standard" message?
Thank,
Meredith
-
N97 doesn't go on after disconnected during update
Hi,
i wanted to update my n97 from 12 to version 2.0. During the update my phone disconnected and connected back to my computer while it was busy doing the update. This made the program flip a couple of times and in the end it said can't continue updating. I couldn't do anything with the program, nothing was happening so i took out the cable and now my phone won't work anymore. The phone doesn't go on anymore, it does vibrate when i push the on button but nothing happends. If i try to do the update again my computer can't find my phone. Please help. Thanks!
Solved!
Go to Solution.Hi lad
If you have not already got your handset fixed, then I will be able to help you out...
Feel free to add me on to my MSN:
Moderator Note: Personal details removed. We kindly ask you not to share your personal contact details on this forum.
Message Edited by zipper22 on 10-Jan-2010 12:37 AM -
Stop a method after catching an exception
I'm facing the following situation.
I have a method that is used in the actionPerformed from a JButton.
In this method there is a try block:
try{
sl1 = Integer.parseInt(Text1.getText());
gh1 = Integer.parseInt(Text2.getText());
}in the catch block i handle a NumberFormatException if there is one.
catch(NumberFormatException e){
e.printStackTrace();
headerLabel.setText("Use numbers only");
}However, i call several other methods after the try / catch block.
I only want this to happen when there isn't an Exception.
Example:
private void buttonAction(){
try{
//Do something
catch(Exception e){
e.printStackTrace();
//Do this if there isn't an Exception
method1();
method2();
}What is the "common" way to handle this situation?Encephalopathic wrote:
One way: Put method1 and method2 in your try block at the bottom, under the line that can cause the exception. e.g.,
private void buttonAction(){
try{
//Do something
//Do this if there isn't an Exception
method1();
method2();
catch(Exception e){
e.printStackTrace();
}Then you can see at a glance that these methods are not supposed to run if the exception is tripped.
Edited by: Encephalopathic on May 1, 2010 5:46 AMOk, so if there's an Exception, the complete try block is reversed?
Can i compare it to a ROLLBACK in sql? -
Opening a new window calls action methods again.
Hi all,
I have a form that has a button to submit the information. For certain scenarios that submission can take over 30 seconds. So while that submission is taking place I hit <ctrl>-N on the browser to open a new window. This new window is calling the action methods associated with the submit button of the form.
My guess is that this second window is sharing the session information of the other window and therefore is sending the request flow through the state of the other view.
What can I do to handle this case?
Thanks.
JasonIf you want to open a new window besides your original window, then you have to do it with javascript. Put a code similar like this in your onClik property of your hyperlink:
window.open("faces/Page1.jsp", "","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=450");
return false;When you click the hyperlink, it will open a second window of Page1.jsp. You can use if-else construct in javascript to choose which page you want to show.
If you want to pass a value to the second window, you can use query string like this:
window.open("faces/Page1.jsp?par1=value1", "","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=450");
return false;Passing a field value in table component to second window:
window.open("faces/Page1.jsp?par1=#{currentRow.value['FIELDNAME']}", "","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=450");
return false;To retrieve the parameter in the second page (in this case Page1.jsp), put this in init():
javax.servlet.http.HttpServletRequest req = (javax.servlet.http.HttpServletRequest) getExternalContext().getRequest();
String par1 = req.getParameter("par1");After getting the parameter value, you can do the rest as your normal page, ie populating the page the way you like.
AFAIK, the only way to open a new window is through javascript only. CMIIW.
Hope that helps. -
JSF 10.1.3EA: af:menuTabs and menuitems calling action methods
I am trying to use af:menuTabs as spelled out in the demo using a menu model. What I would like to do is to get one of the menu items (when clicked) to frist call an action method in one of my backing beans. I belived I could set the outcome for the menu item as follows:
<managed-property>
<property-name>outcome</property-name>
<value>#{recent.refreshAction}</value>
</managed-property>
But when I try this I get the following:
javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: The scope of the referenced object: '#{recent.refreshAction}' is shorter than the referring object at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206) at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
The menuTab is used as follows:
<af:menuTabs var="menuItem" value="#{menuModel.model}">
<f:facet name="nodeStamp">
<af:commandMenuItem text="#{menuItem.label}"
action="#{menuItem.getOutcome}" immediate="true"
rendered="#{menuItem.type=='default'}"/>
</f:facet>
</af:menuTabs>
<managed-bean>
<managed-bean-name>menuItem_recent</managed-bean-name>
<managed-bean-class>com.shiny.menu.MenuItem</managed-bean-class>
<managed-bean-scope>none</managed-bean-scope>
<managed-property>
<property-name>label</property-name>
<value>Recent</value>
</managed-property>
<managed-property>
<property-name>viewId</property-name>
<value>/recent.jsp</value>
</managed-property>
<managed-property>
<property-name>outcome</property-name>
<value>#{recent.refreshAction}</value>
</managed-property>
</managed-bean>
<navigation-case>
<from-action>#{recent.refreshAction}</from-action>
<from-outcome>success</from-outcome>
<to-view-id>/recent.jspx</to-view-id>
</navigation-case>
But if I use the following navigation case (and set the outcome of the menu item accordingly) all is ok but not what I want as I need some objects setup first.
<navigation-case>
<from-outcome>guide.alc_rec</from-outcome>
<to-view-id>/recent.jspx</to-view-id>
<redirect/>
</navigation-case>I have just got back to this as busy on other things.
Has anyone got this to work? I still get the exception:
javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Can't get value from value binding expression: '#{products_backing.loadNew}'. at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206) at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154) at oracle.adf.view.faces.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:55) at oracle.adf.view.faces.component.UIXComponentBase.getProperty(UIXComponentBase.java:1013) at oracle.adf.view.faces.component.UIXMenu.getValue(UIXMenu.java:99) at oracle.adf.view.faces.component.UIXCollection._flushCachedModel(UIXCollection.java:889) at oracle.adf.view.faces.component.UIXCollection.encodeBegin(UIXCollection.java:393) at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:297) -
JSF seems to not call a simple action method
I have a situation where it seems JSF is not performing one of it's basic functions--calling an action method in a backing bean based on a simple JSF EL expression.
Here's the relevant part of my JSP (the h:subview tags are there because another JSP includes this one):
-- my.jsp: ------------------------------------------------------------
<%@ page language="java" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:subview id="work-area">
<h:form id="peers-work">
<h:commandButton id="edit" value="Edit" action="#{peerBean.edit}" styleClass="actionButton" />
</h:form>
</f:subview>
--------------------------------------------------------------My faces-config.xml defines the "peerBean" as follows:
-- faces-config.xml: ------------------------------------------------------------
<faces-config>
<managed-bean>
<description>Session bean for performing Peer operations.</description>
<managed-bean-name>peerBean</managed-bean-name>
<managed-bean-class>com.myApp.PeerBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/my.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/editPeer.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>fail</from-outcome>
<to-view-id>/error.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
--------------------------------------------------------------And here's the action method in PeerBean:
-- PeerBean.java ----------------------------------------
public class PeerBean extends BaseBean implements Serializable {
public PeerBean() {
public String edit() {
logger.debug("in edit().");
Peer peer = this.getPeer(this.getId() );
String outcome = "success"; // optimism!
if (peer == null) {
outcome = "fail";
} else {
this.setId(peer.getId() );
this.setName(peer.getName() );
this.setDescription(peer.getDescription() );
return outcome;
--------------------------------------------------------------It compiles and runs fine, but when I click on the "Edit" button in my.jsp, the page submits but never enters the "edit" method (based on the fact that the logger call in the method does not write anything to the log.), and it simply re-displays my.jsp (even though it should go to the "success" or "fail" page, according to the navigation rules). I see a bunch of debug messages in the logs from the code that loads the page, but no indication that the edit method is touched. There are no stack traces or errors reported in any of the logs that Tomcat creates for this application.
Elsewhere in my application, I am able to use commandButton elements to trigger backing bean actions just like I'm trying to do above, and in other places it works fine. I don't know why the above case does not work.
Also, is there a way to put JSF in a debug mode that shows info such as the navigation outcome processing, JSF EL processing, etc.?
Any help would be appreciated!
Thanks,
ScottI see. Thanks for the response.
I already have message and messages tag in the JSF, but no error message is displayed. Also, there is no error message in the tomcat log.
I actually found your tutorial ( http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html ) yesterday, so when I saw your response, your name looked familiar but I did not immediately remember why. I Will be going through the tutorial now.
My application goes as far as the INVOKE APPLICATION phase, but never enters/executes the action method, can anyone please suggest any reason that could be the cause.
Please see code below:
JSF - status.jsp
============
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<f:loadBundle basename="com.fujimitsu.moneytransfer.resources.UIResources" var="bundle"/>
<html>
<f:view>
<head>
<title><h:outputText value="#{bundle.registerStatus}"/> </title>
<link href="../css/stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<f:verbatim><p>JavaServer Faces Page</p>
<p>
</p><table border="0" cellpadding="0" cellspacing="0" width="800">
<tr>
<td>
<h:graphicImage url="/images/resources.jpg" alt="#{bundle.img_alt_info}"/>
</td>
</tr>
<tr>
<td>
<h:messages globalOnly="false" styleClass="validationMessage" layout="table"/>
<p>
<h:form id="statusManagedBeanForm">
<h:panelGrid columns="3">
<h:outputText value="#{bundle['statusField.status']}"/>
<h:inputText id="status" value="#{statusManagedBean.status}"/>
<h:message for="status" styleClass="validationMessage"/>
<h:outputText value="#{bundle['statusDescField.statusDesc']}"/>
<h:inputText id="statusDesc" value="#{statusManagedBean.statusDesc}"/>
<h:message for="statusDesc" styleClass="validationMessage"/>
<h:outputText value="Created By:"/>
<h:inputText id="createdBy" binding="#{statusManagedBean.createdBy}"/>
<h:message for="createdBy" styleClass="validationMessage"/>
</h:panelGrid>
<h:commandButton action="#{statusManagedBean.createStatusAction}" type="submit" value="Submit"/>
</h:form>
</p>
</td>
</tr>
</table>
</f:verbatim>
</body>
</f:view>
</html>
HTML code of status.jsp before the submit button is clicked
===========================================
<form id="statusManagedBeanForm" name="statusManagedBeanForm" method="post" action="/moneytransferFaces/pages/status.jsf" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="statusManagedBeanForm" value="statusManagedBeanForm" />
<table>
<tbody>
<tr>
<td>Status</td>
<td><input id="statusManagedBeanForm:status" type="text" name="statusManagedBeanForm:status" /></td>
<td></td>
</tr>
<tr>
<td>Status Desc</td>
<td><input id="statusManagedBeanForm:statusDesc" type="text" name="statusManagedBeanForm:statusDesc" /></td>
<td></td>
</tr>
<tr>
<td>Created By:</td>
<td><input id="statusManagedBeanForm:createdBy" type="text" name="statusManagedBeanForm:createdBy" /></td>
<td></td>
</tr>
</tbody>
</table>
<input type="submit" name="statusManagedBeanForm:j_id_jsp_948632549_16" value="Submit" /><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id4:j_id5" />
</form>
HTML code of status.jsp after the submit button is clicked
==========================================
Please note: action="/moneytransferFaces/pages/status.jsf" , is this what it is supposed to be?
<form id="statusManagedBeanForm" name="statusManagedBeanForm" method="post" action="/moneytransferFaces/pages/status.jsf" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="statusManagedBeanForm" value="statusManagedBeanForm" />
<table>
<tbody>
<tr>
<td>Status</td>
<td><input id="statusManagedBeanForm:status" type="text" name="statusManagedBeanForm:status" /></td>
<td></td>
</tr>
<tr>
<td>Status Desc</td>
<td><input id="statusManagedBeanForm:statusDesc" type="text" name="statusManagedBeanForm:statusDesc" /></td>
<td></td>
</tr>
<tr>
<td>Created By:</td>
<td><input id="statusManagedBeanForm:createdBy" type="text" name="statusManagedBeanForm:createdBy" /></td>
<td></td>
</tr>
</tbody>
</table>
<input type="submit" name="statusManagedBeanForm:j_id_jsp_948632549_16" value="Submit" /><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id1:j_id3" />
</form>
STATUS BEAN
===========
package com.fujimitsu.moneytransfer.beans;
import javax.faces.component.html.HtmlInputText;
public class Status {
private String status;
private String statusDesc;
private HtmlInputText createdBy;
public Status() {
public HtmlInputText getCreatedBy() {
return createdBy;
public void setCreatedBy(HtmlInputText createdBy) {
this.createdBy = createdBy;
public String getStatus() {
return status;
public void setStatus(String status) {
this.status = status;
public String getStatusDesc() {
return statusDesc;
public void setStatusDesc(String statusDesc) {
this.statusDesc = statusDesc;
public String createStatusAction() {
this.setStatusDesc("testing createStatusAction()...");
return "success";
FACES CONFIG
============
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2003 Sun Microsystems, Inc. All rights reserved.
SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
-->
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<application>
<locale-config>
<default-locale>en</default-locale>
</locale-config>
</application>
<managed-bean>
<managed-bean-name>statusManagedBean</managed-bean-name>
<managed-bean-class>
com.fujimitsu.moneytransfer.beans.Status
</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/pages/status.jsf</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/pages/home.jsf</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/pages/status.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/pages/home.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<lifecycle>
<phase-listener>
com.fujimitsu.moneytransfer.utils.PrintTreePhaseListener
</phase-listener>
</lifecycle>
</faces-config>
web.xml
======
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!--A short name that is intended to be displayed by tools.-->
<display-name>The simplest JSF application.</display-name>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
</web-app>
DIRECTORY STRUCTURE
====================
appName
pages
WEB-INF
.........Thanks. -
How to call action method on commandLink/commandButton
Faces 1.1 from WebLogic 9.2.2, RichFaces 3.1.3.
I'm still getting up to speed with JSF. I'm experimenting with a datatable with "Add" buttons on each row, to give me a new row after the current row (ignoring the problem with inserting at top for now).
So, I'll need an action method in my backing bean that can tell what row number to insert after in the backing data structure.
I've tried a couple different approaches, but I don't understand what's going wrong with them.
Presently, I've defined this column in my table:
<rich:column>
<f:facet name="header">
<h:outputText value="Add"/>
</f:facet>
<a4j:commandLink action="#{projectManager.addProject}"
reRender="projectsTable" value="Add">
<f:param name="rowNum" value="#{rowNum}"/>
</a4j:commandLink>
</rich:column>Unfortunately, what happens when I click the Add link is ... nothing. I see tons of debug go by on the console, but it doesn't attempt to call my action method (I have a breakpoint set on it in my debugger, so I'm pretty sure it's not getting there (other breakpoints are hit)).
Any suggestions?I am not familiar with JBoss Richfaces and Ajax4jsf. But I can tell you that in Sun JSF you can bind the datatable to a HtmlDataTable property in the bean and then use HtmlDataTable#getRowData() in the action method to obtain the row object where the commandlink was clicked. You can find more detailed background information about this at http://balusc.blogspot.com/2006/06/using-datatables.html
If Richfaces doesn't seem to provide this functionality, then consider to ask it at their own forum at jboss.org. You will have more chance on a well suited answer over there. You see, you're here at a Sun JSF forum.
Maybe you are looking for
-
Yosemite running very slowly on new MacBook Pro
I just bought a new 13" MacBook Pro (not Retina) last month. When I set it up I copied the data and apps from my 2006 MacBook running Snow Leopard. When I try to open apps such as Safari or jEdit or Adobe Reader or NeoOffice it seems to wait foreve
-
Nautilus Can't Be Used Now Due To An Unexpected Error
I discovered that I am getting this message almost every time that I restart X using the command Ctrl + Alt + Backspace. I have been trying to figure out my proper resolution and have been doing many of these restarts recently. The error message in f
-
CJI5 commitment line item report not showing po gross value
Dear All, system is showing only net value in CJI5 report, actaully gross value of po must be reflected in CJI5 report and this happening in all po's like material, service's etc. example is as follows. Example: po net value: 1000 st 10%: 100 po gros
-
Convert Date to Week - ABAP Routine in transformation
Hi all, I am trying to convert a date to a week using ABAP in a transformation. The date is coming from an external database and has the format YYYYMMDD. I want to convert this into the standard 0CALWEEK format. I thought that converting the date to
-
Infoset (SQ02) - hardcode selections ?
Hi. I need to build a BW datasource from an R/3 infoset. We have two fields in the infoset that need to be restricted. Instead of just having these two fields as selections (which actually get passed through to BW as selections in the InfoPackage), w