Compiler use of 1.5 only classes/methods
I just discovered that the 1.5 compiler uses StringBuilder for String concatenation. Does the compiler ever generate calls to StringBuilder that aren't exactly the same for StringBuffer? I'm guessing this is only done because StringBuilder isn't thread safe, not because it presents any extra functionality over StringBuffer.
Are there any other compiler uses of classes or methods that are only available in 1.5? All I know of so far are java.lang.Enum for enumerations, and the <Primitive>.valueOf () methods for auto-unboxing.
God bless,
-Toby Reyelts
Yes, all annotation types extend
java.lang.annotation.Annotation.
There's also java.lang.Iterable of course, but I don't
think it gets the kind of usage you're interested in
here.Yes, I was already aware of that, and those cases are not what I'm interested in. Let me try to be more specific - I'm looking for compiler use of types or methods that are not explicitly "requested" by the source code - like StringBuilder and the valueOf method calls.
God bless,
-Toby Reyelts
Similar Messages
-
Super class methods not shown when Model is generated
I have some EJB's that return a result class, that extend a common class.
eg:
public class Result extends AResult implements Serializable {
method getMethodA();
method getMethodB();
public abstract class AResult implements Serializable{
method getMethodC();
This EJB has been exposed using a web services and I am trying to construct a model based on this WS.
The in the moded, while doing the context mapping i cannot see the
getMethodC()
from the superclass.
However the code for the model seems to be correct i.e. the proxy classes generated have the correct structure.
Anyone encountered this before? Is this a bug?
Thanks,
Manik.thanku very much for the answer.
I am trying to execute the methods of another class using reflection. So I have to consider the inherited methods also. For that, I have to differentiate between standard classes & user-defined classes.Assume that u have one GUI screen where in once u select a class all its methods including inherited methods have to be displayed.
I can get the the superclass using the method getSuperClass(). But inorder to get the protected methods of superclass what is the method to be used ? If I use getMethods(), it returns only public methods, where as getDeclaredMethods() returns all the methods. Since I have to execute only public & protected methods, what is the best way to solve this ? -
How to get the methods of current class and its super class using reflection. The retrieved methods should be only the methods of user-defined classes but not methods of Java APIs such as Object or any other class provided in JDK.
For ex, If Class B is inheriting Class A, i need the methods which are declared only in A & B but not from the Object Class. Similarly, If class C is extending any JDK API such as Thread, I need only the methods declared in class C.thanku very much for the answer.
I am trying to execute the methods of another class using reflection. So I have to consider the inherited methods also. For that, I have to differentiate between standard classes & user-defined classes.Assume that u have one GUI screen where in once u select a class all its methods including inherited methods have to be displayed.
I can get the the superclass using the method getSuperClass(). But inorder to get the protected methods of superclass what is the method to be used ? If I use getMethods(), it returns only public methods, where as getDeclaredMethods() returns all the methods. Since I have to execute only public & protected methods, what is the best way to solve this ? -
Using only one method in session bean to create web service
Hi all,
I hhave a scenario where i am inserting and retrieving data from dict table using web service.
For this i have created a session bean and a wrapper class.
The session bean has two methods: insertRecords(), and viewRec().
so while creating a web service i need to include two methods.
I want to have only one method where i can pass a parameter as operation and if it is "I", then i can call the insert method and if it is "S" i can call view method.
I tried doing that bt i am stuck up with the return type.
Insert method has return type as array of wrapper class and
view method has wrapper class as return type ...
Is this scenario possible..??
or is there any other way to do this???
Plz let me knw..
Thankls n regards,
AnkitaHi Siddharth,
Im really sorry..
i cudnt get u ..
Actually these r methods:
public DemoDicModel[] viewRecords()
and
public DemoDicModel insertRecords(
String title,
String desc,
String status)
and im trying this:
public DemoDicModel[] getMethods(String operation,String title,String desc, String st)
DemoDicModel[] demoModel =null;
DemoDicModel model = new DemoDicModel();
if(operation == "show")
demoModel = viewRecords();
if(operation == "ins")
model = insertRecords(title,desc,st);
model.setMsg("RECORDS GENERATED");
demoModel=
return demoModel;
im stuck up with insert operation.
can u plz explain me in detail.
thanks,
ankita -
We have started a project to migrate 100+ Web Applications developed using legacy Microsoft technologies to latest .Net 4.5 Framework.
The following are the planned migration approach
Classic Asp à
Asp.Net 1.1 Framework à Asp.Net 4.5 Framework
Asp.Net 2.0, 3.5, 4.0 Framework à Asp.Net 4.5 Framework (Direct Migration)
Asp.Net 2.0, 3.5, 4.0 Framework à Asp.Net 4.5 Framework (Application Rewrite
using MVC/Entity Framework)
VB 6 (COM/DCOM) à
C# .Net 4.5 (Web Services)
We have to analyze 100+ applications to categorize them as Simple/Medium/Complex conversions for planning the timeline for completing the migration activities.
Analysis includes identifying the following details - No of classes, Methods, Lines of codes, DLL’s used and Third Party Libraries details
for 100+ Microsoft applications.
Could you please let me know do we have any effective tool to identify above mentioned details?This forum is for Microsoft Project Server, an EPM tool. You will need to find a more suitable forum for your question.
Good Luck with the conversion!
Rod Gill
Author of the one and only Project VBA Book
www.project-systems.co.nz -
Is it possible to call a class method using pattern in ABAP editor.
Hi,
Is it possible to call a class method using pattern in ABAP editor.
Thank U for Ur time.
Cheers,
SamYes,
Click patterns.
Then choose Abap objects patterns.
Click on the Tick
It will give a new screen
Here Give the name of the class first.
Then the object (instance of the calss)
And finally the method ..
it will give you the pattern
Hope this helps. -
Case Management - Create a Case using FM or Class-Method
Hi all,
I am involved in a Case Management project now.
I have a requeirment where I have to create a Case using a Function Module or a Method of a class.
Does anybody knowhow to do this?
Thanks and kind regards,
GuillermoHi,
Can you try the following BAPI - BAPI_CRMCASE_CREATE from the Function Group - CRM_CMG_BAPI. I guess this will at least give you some idea as to how to proceed. Also, have a look at the Function Module documentation which will give you an idea of the sample code.
You can also have a look at the following Class Method - cl_crm_cmg_manager=>create_case. I found this in CL_CRM_CMG_IL which is the SAP CRM 6.0 Genil Component Class.
I hope this will help.
Thanks and Regards,
Samantak.
Edited by: Samantak Chatterjee on Oct 26, 2010 4:03 PM -
Abstract class method polymorphically using constructors?
how can i have a method defined in an abstract superclass call a constructor of the actual class running the method?
abstract class A {
public List getMultple() {
List l = new ArrayList();
for (short i=0;i<4;i++) {
l.add(this());//<obviously this breaks
return l
or something like that. A won't run this method, but its children will...and they can call their constructors, but what do i put here to do that?
i've tried a call back. an abstract method getOne() in the superclass forces each child to define that method and in each of those i return the results of a constructor. that works fine.
the problem is i want to abstract this method out of each of these children classes cause its the exact same in each one, just using a different constructor to get multiple of each in a list. so if i use this callback method, then i am not saving the number of methods in each class, so why bother at all?
any ideas?I still say you are coming at it from the wrong angle. A super class is not the way to go. What you are doing sounds like something very similar to something I did not too long ago.
My requirement was that I had tab delimited text files filed with data that I had to parse. Each line would be used to instantiate one object, so a particular file could be used to instantiate, for example, a thousand objects of the same class. There were different types of files corresponding to different classes to instantiate instances of.
Here is the design I ended up using.
An object of class DataTextFileReader is instantiated to parse the text file and generate objects. It includes code for going line by line, handling bad lines and generating objects and reports. The constructor:
public DataTextFileReader(File inputFile, LineParser<T> theLineParser)LineParser is an interface with one method:
public T read(String line);When you call a load() method of the DataTextFileReader, it does its thing with the aid of the LineParser's read method, to which each line is passed, and stores the generated objects in an ArrayList. This can be returned by using another method. There are other methods for getting the reports, etc.
Obviously, the LineParser chosen needs to have code appropriate for parsing the lines in question, so you have to choose and instantiate the right one.
I find this design to work well. I arrived at it after spending hours giving myself headaches trying to come up with a design where there was a superclass roughly equivalent to the DataTextFileReader mentioned above, and classes extending this that fulfilled the duty of the LineParsers mentioned above... rather like what you are trying to do now.
I did not care for the solution at first because it did not give me the "Ah, I am clever!" sensation I was expecting when I finally cracked the problem using inheritance, but I quickly came to think that it was much better OOD anyway.
The LineParsers mentioned above are essentially embodiments of the Factory pattern, and I would recommend you do something similar in your case. Obviously your "constructors" all have to be different, so you should make a separate class for each of those. Then you can put the code that performs the query and loops to create loads of objects in another class called something like DatabaseDepopulator, using appropriate generics as in my example. Really it is the same problem, now that I look at it.
This will also result in better separation of concepts, if you ask me. Why should the class constructor know how to parse a database result query, much less perform the query? It has nothing to do with databases (I presume). That is the job of an interpreter object.
As a final note, remember... 95% of the time you feel like the language won't let you do what you want, it is because you shouldn't anyway.
Drake -
Update infotype using class method
Hi All,
I need to update an infotype using a Class method. I need to pass a file as input to the Class Structure.
How can we pas a file as input to the Class structure.
Any pointers on this would be really helpful.
Thanks,
SaherHello,
You can update/insert records in Info type thru below code using FM: HR_INFOTYPE_OPERATION, but you need to get the data from the file to internal table for the same.
LOOP AT t_insert INTO w_insert.
w_pernr = w_insert-ownnum.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
pernr = w_pernr
infty = c_infty "'0105'
TABLES
infty_tab = t_0105
EXCEPTIONS
infty_not_found = 1
OTHERS = 2.
READ TABLE t_0105 INTO w_0105 WITH KEY pernr = w_insert-ownnum"#EC *
subty = c_subu.
IF sy-subrc = 0.
MOVE w_0105 TO w_p0105.
w_p0105-usrid = w_insert-lanid.
CLEAR w_0105.
ELSE.
w_p0105-pernr = w_pernr.
w_p0105-usrid = w_insert-lanid.
w_p0105-begda = sy-datum.
w_fnr = 'X'.
ENDIF.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = w_pernr.
w_p0105-pernr = w_pernr.
IF w_fnr = 'X'.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = c_infty "'0105'
number = w_p0105-pernr
subtype = c_subu "'0001'
validityend = w_p0105-endda
validitybegin = w_p0105-begda
record = w_p0105
operation = c_oprn "'INS'
tclas = 'A'
dialog_mode = '0'
IMPORTING
return = w_return.
ELSE.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = c_infty "'0105'
number = w_p0105-pernr
subtype = c_subu "'0001'
validityend = w_p0105-endda
validitybegin = w_p0105-begda
record = w_p0105
operation = 'MOD' "'MOD'
tclas = 'A'
dialog_mode = '0'
IMPORTING
return = w_return.
ENDIF.
CLEAR w_fnr.
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
number = w_pernr.
endloop.
Hope it helps.
Thanks,
Jayant -
What Class/Method/Object's would I use to send variable form data to BradySoft? I have a basic label setup in BradySoft and I want to send it variable form data (a serial number) from Labview ActiveX. I have attached Brady's ActiveX programmers guide but can't figure out what to use for this. P.S. I would call Brady or TekLynx tech support about this but they have a strict policy whereas BradySoft supports ActiveX but their tech support doesn't provide programming help with it. I figured I'd try the NI Forums.
Aaronb, I presume by publishing an ActiveX programmers manual the BradySoft software installs Active X objects. You may choose to interact with these objects within LabVIEW using Active X controls. The following link will provide a starting point for LabVIEW help topics on Active X communication: Select ActiveX Object Dialog Box
http://zone.ni.com/reference/en-XX/help/371361F-01/lvdialog/insert_active_x_object/
Building a Simple Web Browser Using ActiveX (Example of ActiveX arcitecture)
http://zone.ni.com/devzone/cda/epd/p/id/81 Hope this helps provide a bit of guidance. Cheers! -
Deploying application with class files compiled using ojspc
Hi,
I want to deploy the application having class files compiled using ojspc in Oracle9iAS Release 2 rather than having JSP pages.
Thanks,
PritamHi Manoj,
I have tried doing something like this.
If you want to try this out running on a NW2004s.You need to first download the entire project from perforce branch (
tc\webdynpro\clientserver)for NWDS 7.0 and then build the project locally in your java perspective.
During the local build of the project.It will also point out the dependent projects required by this project(clientserevr).
Once the project is build.
Create seperate external jars of the clientserver project and its dependent projects and save them locally.
Open your SDM manager,pick up this jar file from there and deploy it.
Once the deployment is over, the server is ready to run the application you created.
But this make your NWDS2004s to behave jus like NWDS7.0 .
Just a small suggestion ,instead of going through this tedious process you can shift to NWDS7.0 itself.
regards
aarthi mathivanan -
How use XSD and Java? What classes/methods?
I want to use an XSD instead of a DTD with my XML and Java. Does anyone know the classes/methods I should use to do this? Is it even possible? Can you send sample code?
here is the helper function... hope it helps...
import java.io.IOException;
import java.math.*;
import java.text.*;
import org.xml.sax.Attributes;
import org.xml.sax.ContentHandler;
import org.xml.sax.ErrorHandler;
import org.xml.sax.Locator;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;
public class SAXParserDemo
public SAXParserDemo()
public void performDemo(String uri)
System.out.println("Parsing XML file: " + uri + "\n\n");
ContentHandler contentHandler = new MyContentHandler();
ErrorHandler errorHandler = new MyErrorHandler();
try
XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
parser.setContentHandler(contentHandler);
parser.setErrorHandler(errorHandler);
parser.setFeature("http://xml.org/sax/features/validation", true);
parser.parse(uri);
catch(IOException e)
System.out.println("Error reading URI: " + e);
catch(SAXException e)
System.out.println("Error in parsing: " + e);
public static void main(String[] args)
if(args.length != 1)
System.out.println("Usage: java SAXParserDemo [XML URI]");
System.exit(0);
String uri = args[0];
SAXParserDemo parserDemo = new SAXParserDemo();
parserDemo.performDemo(uri);
class MyErrorHandler implements ErrorHandler
public void warning(SAXParseException exception) throws SAXException
throw new SAXException("Warning encountered."+exception);
public void error(SAXParseException exception) throws SAXException
throw new SAXException("Error encountered: "+exception);
public void fatalError(SAXParseException exception) throws SAXException
throw new SAXException("Fatal error encountered."+exception);
class MyContentHandler implements ContentHandler
private Locator locator;
public void setDocumentLocator(Locator locator)
//System.out.println(" * setDocumentLocator() called");
this.locator = locator;
public void startDocument() throws SAXException
//System.out.println("System Message: Parsing begins...");
public void endDocument() throws SAXException
//System.out.println("System Message: ...Parsing ends.");
public void processingInstruction(String target, String data) throws SAXException
//System.out.println("System Message: PI: Target: "+target+" and Data: "+data);
public void startPrefixMapping(String prefix, String uri)
//System.out.println("System Message: Mapping starts on prefix "+prefix+" mapped to URI "+uri);
public void endPrefixMapping(String prefix)
//System.out.println("System Message: Mapping ends on prefix "+prefix);
public void startElement(String namespaceURI, String localName, String rawName, Attributes atts) throws SAXException
//System.out.println("System Message: startElement: "+localName);
if(!namespaceURI.equals(""))
//System.out.println("System Message: in namespace "+namespaceURI+" ("+rawName+")");
else
//System.out.println("System Message: has no associated namespace");
int i;
for(i=0;i<atts.getLength();i++)
//System.out.println("System Message: Attribute: "+atts.getLocalName(i)+"="+atts.getValue(i));
public void endElement(String namespaceURI, String localName, String rawName) throws SAXException
//System.out.println("System Message: endElement: "+localName+"\n");
public void characters(char[] ch, int start, int length) throws SAXException
String s = new String(ch, start, length);
//System.out.println("System Message: characters: "+s);
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
String s = new String(ch, start, length);
//System.out.println("System Message: ignorableWhitespace: ["+s+"]");
public void skippedEntity(String name) throws SAXException
//System.out.println("System Message: Skipping entity: "+name);
} -
A simple ALV report using classes & methods ...
i want a simple ALV report using classes & methods ...
my requirement : i have to use classes & methods instead of calling a function module to display in grid or list format.
plz send me with explanation ASAP...it's very urgent..
Thanks in advance .Hi
Please refer
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
U can use methods for vreating ALVs.
There is a method named set_table_for_first_display in OOP Concepts.
Use this Object Oriented Approach for ALV Creation
Calling the method set_table_for_first_display
CALL METHOD cust_alv->set_table_for_first_display
EXPORTING
is_layout = gst_layout
CHANGING
it_outtab = gt_list
it_fieldcatalog = gt_fcat
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Object Creation and all
Creation of Object for Container
CREATE OBJECT cust_container
EXPORTING
container_name = 'ALV_CONTAINER'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
others = 6
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Creation of Object for ALV Grid
CREATE OBJECT cust_alv
EXPORTING
i_parent = cust_container
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
others = 5
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Layout settings
gst_layout-zebra ='X'.
gst_layout-cwidth_opt = 'X'.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
I_BUFFER_ACTIVE =
I_STRUCTURE_NAME = 'ZCS_INACTV_CUST'
I_CLIENT_NEVER_DISPLAY = 'X'
I_BYPASSING_BUFFER =
CHANGING
ct_fieldcat = gt_fcat
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Calling the method set_table_for_first_display
CALL METHOD cust_alv->set_table_for_first_display
EXPORTING
is_layout = gst_layout
CHANGING
it_outtab = gt_list
it_fieldcatalog = gt_fcat
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
For object oriented concepts refer this link https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c41d47
Reaward if helpful -
Error "You may only define methods within "CLASS class IMPLEMENTATION"
We have code in LMIGOSMC so that the vendor batch number appears in the MIGO transaction for certain movement types. We have created another, custom movement type in which this functionality should be available so I need to add it to LMIGOSMC. When I go in and try to make the modification I am getting the following error:
"You may only define methods within "CLASS class IMPLEMENTATION ...ENDCLASS".
What am I doing wrong?Hi,
You are not doing anything wrong with regard to the syntax error you are getting. During the syntax check of include program LMIGOSMC, the system is not aware of the CLASS... ENDCLASS statements within the program LMIGOSM4. Try the syntax check at the LMIGOSM4 program level (or even better, at the SAPLMIGO level) and you will see that the error is not given.
Regards,
Jamie -
Can't navigate to a page when using a class method
I am working on windows phone 8.1 universal app where I have created a class method and placed it in the NavigationHelper_LoadState method of one of the pages in my app. My navigation is as follows, I click on a link on my Mainpage and that takes me
to the page in question, where I have placed the class method in LoadState.
The class method checks the authentication state of the user. If the user is not logged in, it is supposed to take him to a separate login page (SHDSignIn from the snippet below).
The problem I am running into is that when I hit that part of the code in my class method, it just steps through the redirect code but doesn't take me to the login page but rather takes me to the page that was clicked from mainpage.
From the troubleshooting I have done up to this point seems like an issue probably because I am calling the method from NavigationHelper_LoadState and the system doesn't like it?? Can someone please explain and also provide a workaround for this?
Here is my code for the class function:
public async void SHDAuthState(string errormessage, ProgressBar myprogressbar, TextBlock mytextblock, TextBlock myservernetworkerror)
//Get the values for the userID and password from the settings....
string shdLoggedInValue = (string)appRoamingSettings.Values["shdLoggedIn"];
//If not logged in, redirect to the SHD sign in page...
if (shdLoggedInValue != "Yes")
this.rootFrame.Navigate(typeof(SHDSignIn));
//Getting the cookie if it has expired..
else
//Get the cookie value...
string myCookieValue = (string)appRoamingSettings.Values["MyCookie"];
//Get the original cookie obtain time....
long CookieObtainedTimeValue = (long)appRoamingSettings.Values["CookieObtainedTime"];
//Convertig date/time back to DateTime object....
origCookieObtainedTime = DateTime.FromBinary(CookieObtainedTimeValue);
currentDateTime = DateTime.Now;
//Check to see if cookie has expired....
cookieTimeElasped = currentDateTime - origCookieObtainedTime;
cookieTimeElapsedMins = cookieTimeElasped.TotalMinutes;
// 2 days = 2880 mins but we give a margin of 1 minute
//Get a new cookie if it has expired and save to settings
if (cookieTimeElapsedMins >= 2879)
// Start showing the progress bar...
mycontrols.progressbarShow(myprogressbar, mytextblock);
//Get the values for the userID and password from the settings....
string UserIDValue = (string)appRoamingSettings.Values["UserID"];
string PasswordValue = (string)appRoamingSettings.Values["Password"];
//Update the requestData string before sending.....
requestData = "{" + string.Format(RegisterRequestData, UserIDValue, PasswordValue) + "}";
string registerResults = await SHDAPI(registerUrl, requestData, errormessage);
if (registerResults != null)
// Get the cookie and the time and save it to settings
var shdCookie = JsonConvert.DeserializeObject<SHDHelper.SHDObject>(registerResults).RegistrationCookie;
//Save cookie to the app settings
appRoamingSettings.Values["MyCookie"] = shdCookie;
// build the UI
// Stop showing the progress bar...
mycontrols.progressbarNoShow(myprogressbar, mytextblock);
else
// Stop showing the progress bar...
mycontrols.progressbarNoShow(myprogressbar, mytextblock);
//Show the error message...
myservernetworkerror.Visibility = Windows.UI.Xaml.Visibility.Visible;
Also, I have the rootFrame defined as follows in my class:
Frame rootFrame = Window.Current.Content as Frame;
I am calling the class method from the LoadState method as follows
SHD_helper.SHDAuthState(errorMessage, pgbar, pgText, ServerNetworkError);
thanks
mujnothat is correct. I wanted to keep the login page redirect inside my class method so that I could do the check every time someone came to pages that require authentication. I wanted it in the LoadState method so I can do a check there, redirect
them to login page or just get a cookie and then pass that cookie to page to build the UI for the page
I can do what you are suggesting and have actually tried it but then I have to track which page to take the user to after they log in...
I have multiple clicks in the appbar and pages from where the user can come to these authentication-bound pages..
Suggestions?
Also, what am I doing wrong in my class method that it doesn't navigate to the login page in the LoadState method?
Thanks
mujno
Maybe you are looking for
-
Problem opening a 6.0.1 file on keynote 5.3
Hey Guys, need your help. First about sorry for my english, I'll try to do my best... I recently made a downgrade from Mavericks to Mountain Lion because I had some problems. The thing is that I created a Keynote presentation with the last version of
-
Hi, I had a Word 2007 crash, and when I reopened Word the Adobe tab (for converting to PDF) tab had disappeared When I go to Word options > Add-ins > COM add-ins I can see a check box with Acrobat PDFMaker Office COM add-in.(exact names may not be ac
-
IWeb - Moving iweb site from one mac to another mac.
Hi, I am using iWeb 08 and would like to move the iWeb site that was created on one mac to another mac to continue editing on the other mac. Any one now how to do this. Thanks tsofa
-
So I got my ROKR and plugged it in... iTunes regonized it, i loaded it with music. Okay, looks good... but then I had the problem with the ringing (call drops, then won't quit ringing) - I knew about the motorola update, so I downloaded it and follow
-
Photog upgrading needs your opinion!
Hello Everyone-Who-Knows-More-Than-Me, Since I'm sitting at home and thinking about it, I thought I'd throw out a few questions about this brand new iMac 3.06 and see if the answers come back to me. I haven't bought it yet, but I'm ready to upgrade t